While arch:all binNMUs might work for some packages, they still tend
to create problems due to versioned dependencies using
arch-all-package (= ${source:Version})
as these will be broken by the binNMU. To avoid these, we reject
arch:all binNMUs for now.
checks.BinaryCheck,
checks.BinaryTimestampCheck,
checks.SingleDistributionCheck,
+ checks.ArchAllBinNMUCheck,
):
chk().check(self)
return True
+class ArchAllBinNMUCheck(Check):
+ """Check for arch:all binNMUs"""
+ def check(self, upload):
+ changes = upload.changes
+
+ if 'all' in changes.architectures and changes.changes.get('Binary-Only') == 'yes':
+ raise Reject('arch:all binNMUs are not allowed.')
+
+ return True
+
class LintianCheck(Check):
"""Check package using lintian"""
def check(self, upload):