X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fsrcformats.py;h=0a74c19262f99fe91e6476487cabd39bf8f22faa;hb=1fa1f22b70c6ee46aea78ee40b9797a574d7c583;hp=a8237c3d5e17e9cded9a24daa2d42d890146e768;hpb=7a22fcc70b41ee02adeb5bf18c9d1d0d91917615;p=dak.git diff --git a/daklib/srcformats.py b/daklib/srcformats.py index a8237c3d..0a74c192 100644 --- a/daklib/srcformats.py +++ b/daklib/srcformats.py @@ -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