handle exclusivearch correctly
authorAnas Nashif <anas.nashif@intel.com>
Sun, 5 Aug 2012 17:46:58 +0000 (18:46 +0100)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 5 Aug 2012 17:46:58 +0000 (18:46 +0100)
Change-Id: I0a6ecc51c6179f0cc6467550d0723a7d15ef7876

depanneur

index 2f8f6ce7b444b8002469e9f4328cdf68682b548e..589802edc397ffd30ce41a43f36e733d7063f904 100755 (executable)
--- a/depanneur
+++ b/depanneur
@@ -395,7 +395,8 @@ sub parse_packs {
     my %packs = ();
     foreach my $spec (@packs) {
         my $pack = Build::Rpm::parse($config, $spec);
-        if ( ( $pack->{'exclarch'} ) && ( ! grep $_ eq $arch, $pack->{'exclarch'} ) ) {
+        if ( ( $pack->{'exclarch'} ) &&  ( ! grep $_ eq $archs[0], @{$pack->{'exclarch'}} ) ) {
+            debug("arch not compatible");
             next;
         }
         my $name = $pack->{name};