X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=08b841ff11f830bb76c7cbf0f7916031cee94fbe;hb=c67a020603dc26499b8d9b6ba3d5469fdcbb2567;hp=5bd8bf2c1359bfe96a1d775aac2f7f130fb8ec0f;hpb=b58774e49de73e6ec962720cc2d86c0002036929;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 5bd8bf2c..08b841ff 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1352,14 +1352,14 @@ def is_oldstableupdate (): if not changes["architecture"].has_key("source"): pusuite = DBConn().get_suite_id("oldstable-proposed-updates") cursor = DBConn().cursor() - cursor.execute( """"SELECT 1 FROM source s - JOIN src_associations sa ON (s.id = sa.source) - WHERE s.source = %(source)s - AND s.version = %(version)s - AND sa.suite = %d""", - {'source' : changes['source'], + cursor.execute( """SELECT 1 FROM source s + JOIN src_associations sa ON (s.id = sa.source) + WHERE s.source = %(source)s + AND s.version = %(version)s + AND sa.suite = %(suite)s""", + {'source' : changes['source'], 'version' : changes['version'], - 'suite' : pusuite}) + 'suite' : pusuite}) if cursor.fetchone(): return 0