X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fchecks.py;h=6091bc73f60deca61c50a74155022fd0bd475f45;hb=390691357b1b785378624a8587c176592e5370f8;hp=06626fd16aae59b4de48dfd2b425c7a2c6ec7875;hpb=1419ec698cca31a39e2ed8fe7177b986d99ada00;p=dak.git diff --git a/daklib/checks.py b/daklib/checks.py index 06626fd1..6091bc73 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."""