]> err.no Git - dak/commitdiff
p-u
authorJoerg Jaspert <joerg@debian.org>
Thu, 23 Apr 2009 20:09:49 +0000 (22:09 +0200)
committerJoerg Jaspert <joerg@debian.org>
Thu, 23 Apr 2009 20:09:49 +0000 (22:09 +0200)
check for the existance of Description: in a binary package.

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

index 0a12eacabde747c504d0c8e11b62f9fe7e1d02fb..5fce9fa98b9a403e02908ac4c85b2deb0f6af885 100755 (executable)
@@ -437,6 +437,15 @@ def check_files():
                 deb_file.close()
                 # Can't continue, none of the checks on control would work.
                 continue
+
+            # Check for mandantory "Description:"
+            deb_file.seek ( 0 )
+            try:
+                apt_pkg.ParseSection(apt_inst.debExtractControl(deb_file))["Description"] + '\n'
+            except:
+                reject("%s: Missing Description in binary package" % (f))
+                continue
+
             deb_file.close()
 
             # Check for mandatory fields