Joerg Jaspert pushed to branch master at Debian FTP Team / dak
Commits:
-
b9bbc46d
by Niels Thykier at 2024-12-15T09:08:24+00:00
-
befbf1a2
by Joerg Jaspert at 2024-12-15T13:42:54+00:00
1 changed file:
Changes:
... | ... | @@ -413,6 +413,10 @@ class BinaryCheck(Check): |
413 | 413 | if source is not None and not re_field_source.match(source):
|
414 | 414 | raise Reject('{0}: Invalid Source field'.format(fn))
|
415 | 415 | |
416 | + section = control.get('Section', '')
|
|
417 | + if section == '' or section == 'unknown' or section.endswith("/unknown"):
|
|
418 | + raise Reject('{0}: The "Section" field must be present and use a real section name.'.format(fn))
|
|
419 | + |
|
416 | 420 | # check filename
|
417 | 421 | |
418 | 422 | match = re_file_binary.match(fn)
|