X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdbconn.py;h=e5db1644ced02390ad1cf2fcc8b446151c4f9ae8;hb=0964201c18c15951001d468ed4a8ed5d5960aa17;hp=dc5518a9a698363b5e7411bd1fd1bc4e001f554e;hpb=b3fcdc882c96d2f2d21e5d29fdc08a450f1c291b;p=dak.git diff --git a/daklib/dbconn.py b/daklib/dbconn.py index dc5518a9..e5db1644 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -2277,9 +2277,9 @@ def source_exists(source, source_version, suites = ["any"], session=None): maps = [ (x[1], x[2]) for x in maps if x[0] == "map" or x[0] == "silent-map" ] s = [suite] - for x in maps: - if x[1] in s and x[0] not in s: - s.append(x[0]) + for (from_, to) in maps: + if from_ in s and to not in s: + s.append(to) q = q.filter(DBSource.suites.any(Suite.suite_name.in_(s))) @@ -2902,8 +2902,8 @@ class DBConn(object): # The following tables have primary keys but sqlalchemy # version 0.5 fails to reflect them correctly with database # versions before upgrade #41. - #'changes', - #'build_queue_files', + 'changes', + 'build_queue_files', ) tables_no_primary = ( @@ -2917,8 +2917,8 @@ class DBConn(object): 'suite_build_queue_copy', 'udeb_contents', # see the comment above - 'changes', - 'build_queue_files', + #'changes', + #'build_queue_files', ) views = (