X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=08b841ff11f830bb76c7cbf0f7916031cee94fbe;hb=c67a020603dc26499b8d9b6ba3d5469fdcbb2567;hp=938f839cca77faf441033b56d4ebeedf10c6add9;hpb=11dce36cabea5fa916ef6da415b4669898ba9ff7;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 938f839c..08b841ff 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -562,7 +562,7 @@ def check_files(): # Check the version and for file overwrites reject(Upload.check_binary_against_db(f),"") - Binary(f, reject).scan_package( ) + Binary(f, reject).scan_package() # Checks for a source package... else: @@ -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