]> err.no Git - dak/commitdiff
queue.py typo fixes
authorMark Hymers <mhy@debian.org>
Sun, 2 Aug 2009 14:31:01 +0000 (15:31 +0100)
committerMark Hymers <mhy@debian.org>
Sun, 9 Aug 2009 15:49:30 +0000 (16:49 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/queue.py

index f6362206c10c9b03fc7214a5139431f26ed97d5b..ff7247ceede91ec35a3e5bd865306cf94ca2d484 100755 (executable)
@@ -443,7 +443,7 @@ class Upload(object):
         # of the queue directories.
         base_filename = os.path.basename(filename)
         for d in [ "Accepted", "Byhand", "Done", "New", "ProposedUpdates", "OldProposedUpdates" ]:
-            if os.path.exists(os.path.join(Cnf["Dir::Queue::%s" % (d) ], base_filename):
+            if os.path.exists(os.path.join(Cnf["Dir::Queue::%s" % (d) ], base_filename)):
                 self.rejects.append("%s: a file with this name already exists in the %s directory." % (base_filename, d))
 
         # Check the .changes is non-empty
@@ -872,7 +872,7 @@ class Upload(object):
                 self.binary_file_checks(f, session)
 
             # Checks for a source package...
-            elif re_issource.match(f)
+            elif re_issource.match(f):
                 has_source = True
 
                 # This routine appends to self.rejects/warnings as appropriate
@@ -1161,7 +1161,7 @@ class Upload(object):
                 self.rejects.append(j)
             if "source" in self.pkg.changes["architecture"]:
                 # TODO: Move _ensure_dsc_hash into this class
-                for j in utils._ensure_dsc_hash(self.pkg.dsc, self.pkg.dsc_files, hashname, hashfunc))
+                for j in utils._ensure_dsc_hash(self.pkg.dsc, self.pkg.dsc_files, hashname, hashfunc):
                     self.rejects.append(j)
 
     def check_hashes():