X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fsrcformats.py;h=0a74c19262f99fe91e6476487cabd39bf8f22faa;hb=32dc9d52c53207a6524ecf63ac7866435ae40374;hp=87ba2f89c614bd71c9903a4ff7d05a6ee379179b;hpb=b2d2d87ae436de26dacd15885c6e71309c869180;p=dak.git diff --git a/daklib/srcformats.py b/daklib/srcformats.py index 87ba2f89..0a74c192 100644 --- a/daklib/srcformats.py +++ b/daklib/srcformats.py @@ -17,7 +17,7 @@ class SourceFormat(type): @classmethod def reject_msgs(cls, has): - if len(cls.required) != len([x for x in requires if has[x]]): + if len(cls.requires) != len([x for x in cls.requires if has[x]]): yield "lack of required files for format %s" % cls.name for key in cls.disallowed: @@ -37,6 +37,8 @@ class FormatOne(SourceFormat): def reject_msgs(cls, has): if not (has['native_tar_gz'] or (has['orig_tar_gz'] and has['debian_diff'])): yield "no .tar.gz or .orig.tar.gz+.diff.gz in 'Files' field." + if has['native_tar_gz'] and has['debian_diff']: + yield "native package with diff makes no sense" if (has['orig_tar_gz'] != has['orig_tar']) or \ (has['native_tar_gz'] != has['native_tar']): yield "contains source files not allowed in format %s" % cls.name