[SCM] Debian package checker branch, master, updated. 2.5.0-2-g68ca783
The following commit has been merged in the master branch:
commit 68ca783f2e8f2d220a8c7d47c91f2c5236126d86
Author: Niels Thykier <niels@thykier.net>
Date: Sat May 14 10:25:52 2011 +0200
Fixed a flaw in the logic for architecture dependent overrides
diff --git a/debian/changelog b/debian/changelog
index 1e9e50d..ec7f59f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,9 @@
-lintian (2.5.1) unstable; urgency=low
+lintian (2.5.1) UNRELEASED; urgency=low
+
+ * lib/Lintian/Tags.pm:
+ + [NT] Fixed a flaw in logic that gave incorrect results for architecture
+ dependent overrides. Thanks to Andreas Beckmann for the report and the
+ patch. (Closes: #626587)
* unpack/list-srcpkg:
+ [ADB] Don't rely on the order of fields in the Sources file. The files
diff --git a/lib/Lintian/Tags.pm b/lib/Lintian/Tags.pm
index 4b48276..8bd6f3b 100644
--- a/lib/Lintian/Tags.pm
+++ b/lib/Lintian/Tags.pm
@@ -575,9 +575,7 @@ sub file_overrides {
}
# missing wildcard checks and sanity checking archs $arch
if ($negated) {
- $found = 1 if !$found;
- } else {
- $found = 0 if $found;
+ $found = $found ? 0 : 1;
}
next unless $found;
}
--
Debian package checker
Reply to: