diff options
author | Helmut Grohne <helmut@subdivi.de> | 2019-11-05 06:04:21 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2019-11-05 06:04:21 +0100 |
commit | 7276e444c374e597c32883aaa2305976b09b9071 (patch) | |
tree | 421566cac52b0de1ac7f0476f352930c5899f261 | |
parent | 0615c3f1684b01c1fa6fc54fc8c53f7632179fa3 (diff) | |
download | crossqa-7276e444c374e597c32883aaa2305976b09b9071.tar.gz |
depcheck: ignore givebacks
When an architecture encounters an installation error, the chance that
dose and apt disagree is very high. Thus skip the relevant architecture
until the next mirror push entirely.
-rwxr-xr-x | depcheck.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/depcheck.py b/depcheck.py index e417c72..ded5fab 100755 --- a/depcheck.py +++ b/depcheck.py @@ -461,8 +461,7 @@ def main(): mirror.update_release() db = sqlite3.connect("db") cur = db.cursor() - cur.execute("""SELECT architecture FROM depcheck - WHERE giveback = 1 OR releasetime < ?;""", + cur.execute("SELECT architecture FROM depcheck WHERE releasetime < ?;", (mirror.releasetime,)) archs = set(row[0] for row in cur.fetchall()) if not archs: |