]> err.no Git - dak/commitdiff
merge check for Description field with other checks
authorAnsgar Burchardt <ansgar@debian.org>
Wed, 9 May 2012 10:46:20 +0000 (12:46 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Wed, 9 May 2012 10:48:55 +0000 (12:48 +0200)
daklib/queue.py

index e2ab8467b66ec7901e967e68e0ce513dd24dd8fa..2f347f478e60120bbfc450d11fbd7c148dd14c33 100755 (executable)
@@ -720,18 +720,10 @@ class Upload(object):
             # Can't continue, none of the checks on control would work.
             return
 
-        # Check for mandantory "Description:"
-        deb_file.seek(0)
-        try:
-            apt_pkg.ParseSection(apt_inst.debExtractControl(deb_file))["Description"] + '\n'
-        except:
-            self.rejects.append("%s: Missing Description in binary package" % (f))
-            return
-
         deb_file.close()
 
         # Check for mandatory fields
-        for field in [ "Package", "Architecture", "Version" ]:
+        for field in [ "Package", "Architecture", "Version", "Description" ]:
             if control.Find(field) == None:
                 # Can't continue
                 self.rejects.append("%s: No %s field in control." % (f, field))