X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=63b56da6c0b3c4f771f8070d58e53db4e10d81b4;hb=9e40c7aa193ec9a3e4041369298167c9d0402fdf;hp=06626fd16aae59b4de48dfd2b425c7a2c6ec7875;hpb=c47d45b655bbf9e6d13d21a1ebe4b5248f5d50df;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index 06626fd1..63b56da6 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -338,7 +338,11 @@ class SourceCheck(Check): except Exception as e: raise Reject('{0}: APT could not parse {1} field: {2}'.format(dsc_fn, field, e)) - # TODO: check all expected files for given source format are included + rejects = utils.check_dsc_files(dsc_fn, control, source.files.keys()) + if len(rejects) > 0: + raise Reject("\n".join(rejects)) + + return True class SingleDistributionCheck(Check): """Check that the .changes targets only a single distribution.""" @@ -467,6 +471,7 @@ class TransitionCheck(Check): if transitions is None: return True + control = upload.changes.changes source = re_field_source.match(control['Source']).group('package') for trans in transitions: