- support "any" in debian's dependency predicates
authorMichael Schroeder <mls@suse.de>
Mon, 17 Oct 2011 13:45:26 +0000 (15:45 +0200)
committerMichael Schroeder <mls@suse.de>
Mon, 17 Oct 2011 13:46:06 +0000 (15:46 +0200)
Build/Deb.pm

index f613404..b6c7cc6 100644 (file)
@@ -73,11 +73,11 @@ sub parse {
               $isneg = 1 if $q =~ s/^\!//;
               $bad = 1 if !defined($bad) && !$isneg;
               if ($isneg) {
-                if ($q eq $arch || $q eq "$os-$arch") {
+                if ($q eq $arch || $q eq 'any' || $q eq "$os-$arch" || $q eq "$os-any") {
                   $bad = 1;
                   last;
                 }
-              } elsif ($q eq $arch || $q eq "$os-$arch") {
+              } elsif ($q eq $arch || $q eq 'any' || $q eq "$os-$arch" || $q eq "$os-any") {
                 $bad = 0;
               }
             }