From 188c5b96e9886422aa184219731bb07e15457c0e Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 23 Apr 2009 22:09:49 +0200 Subject: [PATCH] p-u check for the existance of Description: in a binary package. Signed-off-by: Joerg Jaspert --- dak/process_unchecked.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.2