]> git.decadent.org.uk Git - dak.git/commitdiff
auto-decruft: Use an id rather than an ORM object in SQL
authorNiels Thykier <niels@thykier.net>
Wed, 17 Jun 2015 20:19:46 +0000 (22:19 +0200)
committerNiels Thykier <niels@thykier.net>
Wed, 17 Jun 2015 20:19:46 +0000 (22:19 +0200)
Signed-off-by: Niels Thykier <niels@thykier.net>
dak/auto_decruft.py

index 62996e2b33a179b97b6fc3033883a865d549d4a0..1586fe10fb0365e81243c971d93d138055239c0f 100644 (file)
@@ -76,7 +76,8 @@ def compute_sourceless_groups(suite_id, session):
     """""
     rows = query_without_source(suite_id, session)
     message = '[auto-cruft] no longer built from source, no reverse dependencies'
-    arch_all_id_tuple = tuple([get_architecture('all', session=session)])
+    arch = get_architecture('all', session=session)
+    arch_all_id_tuple = tuple([arch.arch_id])
     arch_all_list = ["all"]
     for row in rows:
         package = row[0]