summaryrefslogtreecommitdiffstats
path: root/dh_lintian
diff options
context:
space:
mode:
Diffstat (limited to 'dh_lintian')
-rwxr-xr-xdh_lintian19
1 files changed, 17 insertions, 2 deletions
diff --git a/dh_lintian b/dh_lintian
index b11a45c..f1579b1 100755
--- a/dh_lintian
+++ b/dh_lintian
@@ -52,11 +52,26 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
my $overrides = pkgfile(
{
'named' => 0,
- 'support-architecture-restriction' => 0,
+ 'support-architecture-restriction' => 1,
},
$package,
- "lintian-overrides"
+ "lintian-overrides",
);
+ if (not compat(13) and package_multiarch($package) eq 'same') {
+ my $no_arch_overrides = pkgfile(
+ {
+ 'named' => 0,
+ 'support-architecture-restriction' => 0,
+ },
+ $package,
+ "lintian-overrides",
+ );
+ if ($no_arch_overrides ne $overrides) {
+ my $msg = "Multi-Arch: same packages must have the same lintian-overrides. Please merge ${overrides}"
+ . " into ${no_arch_overrides} and use lintian's syntax for architecture specific overrides";
+ error($msg);
+ }
+ }
if ($overrides ne '') {
install_dir($or_dir);