]> git.decadent.org.uk Git - dak.git/commitdiff
Merge remote branch 'twerner/process-upload' into merge
authorJoerg Jaspert <joerg@debian.org>
Sun, 27 Dec 2009 12:08:12 +0000 (13:08 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 27 Dec 2009 12:08:12 +0000 (13:08 +0100)
* twerner/process-upload:
  add_dsc_to_db: fix typo u <-> up

Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/dbconn.py

index 8d5dd4b574068d84283050347342612600566747..85ba3ab3fb90fe25d681b63269cf24831f7ad7b1 100644 (file)
@@ -2277,15 +2277,16 @@ def add_dsc_to_db(u, filename, session=None):
             uploader_ids.append(get_or_set_maintainer(up, session).maintainer_id)
 
     added_ids = {}
-    for up in uploader_ids:
-        if added_ids.has_key(up):
-            utils.warn("Already saw uploader %s for source %s" % (up, source.source))
+    for up_id in uploader_ids:
+        if added_ids.has_key(up_id):
+            import utils
+            utils.warn("Already saw uploader %s for source %s" % (up_id, source.source))
             continue
 
-        added_ids[u]=1
+        added_ids[up_id]=1
 
         su = SrcUploader()
-        su.maintainer_id = up
+        su.maintainer_id = up_id
         su.source_id = source.source_id
         session.add(su)