diff options
author | Helmut Grohne <helmut@subdivi.de> | 2019-03-02 15:41:15 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2019-03-02 15:41:15 +0100 |
commit | 4d08683201cc37586ffbb3bd5dcf932851c8a913 (patch) | |
tree | 502e9ce2913ef6e24f725f1ec7c7dd53f787ce12 /depcheck.py | |
parent | 7cd66ced9ea502a4179fcf6a2c9d1ce7e2b314e1 (diff) | |
download | crossqa-4d08683201cc37586ffbb3bd5dcf932851c8a913.tar.gz |
depcheck: remove the 6h condition
If the release timestamp doesn't change, we should assume that the
content didn't either.
Diffstat (limited to 'depcheck.py')
-rwxr-xr-x | depcheck.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/depcheck.py b/depcheck.py index cb2e7e4..d2c6bf6 100755 --- a/depcheck.py +++ b/depcheck.py @@ -442,12 +442,9 @@ def main(): mirror.update_release() db = sqlite3.connect("db") cur = db.cursor() - lastupdate = datetime.datetime.utcnow() - datetime.timedelta(hours=6) - cur.execute(""" - SELECT architecture FROM depcheck - WHERE giveback = 1 OR updatetime < ? OR releasetime < ?;""", - (datetime.datetime.utcnow() - datetime.timedelta(hours=6), - mirror.releasetime)) + cur.execute("""SELECT architecture FROM depcheck + WHERE giveback = 1 OR releasetime < ?;""", + (mirror.releasetime,)) for architecture, in list(cur.fetchall()): print("update %s" % architecture) update_depcheck(mirror, db, architecture) |