From: Joerg Jaspert <joerg@debian.org>
Date: Sat, 14 Mar 2009 09:15:09 +0000 (+0100)
Subject: *sigh*
X-Git-Tag: debian-r/squeeze~1245^2~1
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=201659087bcd237fb4dd169003a54e4d5a2e3aff;p=dak.git

*sigh*

remove the '' and "suddenly" this new db interface does the right thing.
With it it doesnt even manage to give correct error messages.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---

diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index aa38a003..938f839c 100755
--- a/dak/process_unchecked.py
+++ b/dak/process_unchecked.py
@@ -1320,7 +1320,7 @@ def is_stableupdate ():
         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 s.version = %(version)s
                               AND sa.suite = %(suite)d""",
                         {'source' : changes['source'],
                          'version' : changes['version'],