From 57506ea6e65079371445778f63ed15812c3fe874 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 9 May 2012 12:46:20 +0200 Subject: [PATCH 1/1] merge check for Description field with other checks --- daklib/queue.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/daklib/queue.py b/daklib/queue.py index e2ab8467..2f347f47 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -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)) -- 2.39.2