Change-Id: I7d14fdbee434205c17996a77fc59ad46f8cefbe1
}
my $pack = Build::Rpm::parse($config, $spec);
if ( ( $pack->{'exclarch'} ) && ( ! grep $_ eq $archs[0], @{$pack->{'exclarch'}} ) ) {
- debug("arch not compatible");
+ warning("build arch not compatible: " . join(" ", @{$pack->{'exclarch'}}));
next;
}
my $name = $pack->{name};
%to_build = %packs
}
+error("no available packages to build.") if (scalar (keys %to_build) == 0);
+
if ($incremental == 1 && scalar(keys %to_build) > 1) {
error("incremental build only support building one package");
}