dpkg-source in jessie doesn't know what to do with them.
Signed-off-by: Julien Cristau <jcristau@debian.org>
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']):
+ (has['native_tar_gz'] != has['native_tar']) or \
+ has['orig_tar_sig']:
yield "contains source files not allowed in format %s" % cls.name
for msg in super(FormatOne, cls).reject_msgs(has):
changes = self.assertParse('dsc/10.dsc', -1, 1)
files = build_file_list(changes, 1)
rejmsg = check_dsc_files('10.dsc', changes, files.keys())
- self.assertEqual(rejmsg, [])
+ self.assertEqual(rejmsg, ['10.dsc: contains source files not allowed in format 1.0'])
class ParseChangesTestCase(ParseChangesTestCase):
'native_tar_gz': 1,
'debian_diff': 1,
})
+ self.assertRejected({
+ 'orig_tar': 1,
+ 'orig_tar_gz': 1,
+ 'debian_diff': 1,
+ 'orig_tar_sig': 1,
+ })
class FormatTreeTestCase(SourceFormatTestCase):
fmt = srcformats.FormatThree
self.assertInvalid('8.4 (hardy)')
if __name__ == '__main__':
+ import unittest
unittest.main()