]> git.donarmstrong.com Git - dak.git/commitdiff
Reject uploads with Multi-Arch: no
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 6 Nov 2014 18:58:30 +0000 (19:58 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 6 Nov 2014 18:58:30 +0000 (19:58 +0100)
Multi-Arch: no currently breaks wanna-build. We don't want that to happen.

Reference: https://bugs.debian.org/768353

daklib/checks.py

index 66f39ffba244ff24267d9f916f26043a85ded3ab..26439aaa798e2726b5ca5cb21d6f5f8a42258c61 100644 (file)
@@ -361,6 +361,11 @@ class BinaryCheck(Check):
                 except:
                     raise Reject('{0}: APT could not parse {1} field'.format(fn, field))
 
+        # "Multi-Arch: no" breaks wanna-build, #768353
+        multi_arch = control.get("Multi-Arch")
+        if multi_arch == 'no':
+            raise Reject('{0}: Multi-Arch: no support in Debian is broken (#768353)'.format(fn))
+
 class BinaryTimestampCheck(Check):
     """check timestamps of files in binary packages