Skip to content

Commit

Permalink
- bring prereqs handling in sync with the obs backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Aug 20, 2012
1 parent 5bd73cd commit 2d83551
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions expanddeps
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,9 @@ if ($spec) {
$packvers = $d->{'version'};
$subpacks = $d->{'subpacks'};
@packdeps = @{$d->{'deps'} || []};
for my $pr (@{$d->{'prereqs'} || []}) {
push @packdeps, $pr unless grep {$_ eq $pr} @$subpacks;
if ($d->{'prereqs'}) {
my %deps = map {$_ => 1} (@packdeps, @{$d->{'subpacks'} || []});
push @packdeps, grep {!$deps{$_} && !/^%/} @{$d->{'prereqs'}};
}
}

Expand Down

0 comments on commit 2d83551

Please sign in to comment.