Signed-off-by: Chris Lamb <lamby@debian.org>
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
'native_tar_gz': 1,
'more_orig_tar': 1,
})
+ self.assertRejected({
+ 'native_tar': 1,
+ 'native_tar_gz': 1,
+ 'debian_diff': 1,
+ })
class FormatTreeTestCase(SourceFormatTestCase):
fmt = srcformats.FormatThree