From: Joerg Jaspert Date: Thu, 23 Apr 2009 20:09:49 +0000 (+0200) Subject: p-u X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188c5b96e9886422aa184219731bb07e15457c0e;p=dak p-u check for the existance of Description: in a binary package. Signed-off-by: Joerg Jaspert --- diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 0a12eaca..5fce9fa9 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -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