Support BuildIgnores of kiwi files. Need to be better defined in kiwi,
authorAdrian Schröter <adrian@suse.de>
Thu, 29 Apr 2010 10:05:59 +0000 (12:05 +0200)
committerAdrian Schröter <adrian@suse.de>
Thu, 29 Apr 2010 10:07:00 +0000 (12:07 +0200)
currently this is only possible via onlyarch="skipit"

Build/Kiwi.pm

index 06f7ab6..0750bcd 100644 (file)
@@ -203,7 +203,11 @@ sub kiwiparse {
     }
 
     # not nice, but optimizes our build dependencies
-    next if $package->{'onlyarch'} && $package->{'onlyarch'} eq "skipit";
+    # FIXME: design a real blacklist option in kiwi
+    if ($package->{'onlyarch'} && $package->{'onlyarch'} eq "skipit") {
+       push @packages, "-".$package->{'name'};
+       next;
+    }
 
     # we need this package
     push @packages, $package->{'name'};