Skip to content

Commit

Permalink
[backend] simplify code
Browse files Browse the repository at this point in the history
this seems also to avoid a problem with the layered variable names... perl bug?
  • Loading branch information
adrianschroeter committed Jul 10, 2015
1 parent c95f56a commit 49a062d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/backend/bs_sched
Original file line number Diff line number Diff line change
Expand Up @@ -5152,8 +5152,7 @@ sub checkkiwiproduct {
my $pdatas = ($projpacks->{$aprojid} || {})->{'package'} || {};
my @apackids = sort keys %$pdatas;
for my $apackid (@apackids) {
my $pdata = $projpacks->{$aprojid}->{'package'}->{$apackid};
next if $pdata->{'patchinfo'};
next if $pdatas->{$apackid}->{'patchinfo'};
my $info = (grep {$_->{'repository'} eq $arepoid} @{$pdatas->{$apackid}->{'info'} || []})[0];
$known{$apackid} = $info->{'name'} if $info && $info->{'name'};
}
Expand Down Expand Up @@ -5198,8 +5197,7 @@ sub checkkiwiproduct {

for my $apackid (orderpackids($projpacks->{$aprojid}, @apackids)) {
next if $apackid eq '_volatile';
my $pdata = $projpacks->{$aprojid}->{'package'}->{$apackid};
next if $pdata->{'patchinfo'};
next if $pdatas->{$apackid}->{'patchinfo'};
if ($projpacks->{$aprojid}->{'kind'} && $projpacks->{$aprojid}->{'kind'} eq 'maintenance_release') {
$xpackid = "";
$xpackid = $1 if $apackid =~ /^(.*)\.(imported_)?(\d+)$/;
Expand Down

0 comments on commit 49a062d

Please sign in to comment.