[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.2.6-30-g617ae34



The following commit has been merged in the master branch:
commit 617ae346fe3f1fb985716f97b72a0a43e39cf032
Author: Adam D. Barratt <adam@adam-barratt.org.uk>
Date:   Tue Mar 3 21:34:10 2009 +0000

    Fix inverted logic is the "package 1 is arch:any" binNMU check
    
    Whilst making the binNMU checks more tolerant to whitespace in
    architecture values, the logic for whether the first package
    was "arch:any" accidentally became reversed so that we were
    actually checking whether the package was arch:all.

diff --git a/checks/version-substvars b/checks/version-substvars
index f8a9652..b1841b1 100644
--- a/checks/version-substvars
+++ b/checks/version-substvars
@@ -52,7 +52,7 @@ foreach (keys %$binpkgs) {
 	my ($pkg1, $pkg1_is_any, $pkg2, $pkg2_is_any, $substvar_strips_binNMU);
 
 	$pkg1 = $_;
-	$pkg1_is_any = ($info->binary_field($pkg1, 'architecture') =~ /^\s*all\s*$/);
+	$pkg1_is_any = ($info->binary_field($pkg1, 'architecture') !~ /^\s*all\s*$/);
 
 	foreach my $field (@dep_fields) {
 		next unless $info->binary_field($pkg1, $field);

-- 
Debian package checker


Reply to: