Skip to content

Commit

Permalink
do not abort if one of the rpms/debs is noarch
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 2, 2014
1 parent bfd14d3 commit 86db4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mkbaselibs
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ sub handle_rpms {
$arch = $res{'ARCH'}->[0];
my @targets = get_targets($arch, $config);
if (!@targets) {
print "no targets for arch $arch, nothing to do\n";
exit(0);
print "no targets for arch $arch, skipping $rname\n";
next;
}
for my $target (@targets) {

Expand Down Expand Up @@ -966,8 +966,8 @@ sub handle_debs {
# line and get a list of target_arch-es
my @targets = get_targets($arch, $config);
if (!@targets) {
print "no targets for arch $arch, nothing to do\n";
return; # there may be more debs to handle
print "no targets for arch $arch, skipping $d_name\n";
next; # there may be more debs to handle
}

for my $target (@targets) {
Expand Down

0 comments on commit 86db4ed

Please sign in to comment.