Skip to content

Commit

Permalink
Merge pull request #6488 from mlschroe/master
Browse files Browse the repository at this point in the history
[backend] fix patchinfo handling of containers
  • Loading branch information
mlschroe committed Dec 7, 2018
2 parents e08f34a + 92167f2 commit db28aee
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/backend/BSSched/BuildJob/Patchinfo.pm
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ sub get_bins {
my $binlnk = BSUtil::retrieve("$d/$bin", 1);
next unless $binlnk;
push @d, $bin;
# grab everything related to this
my $p = $binlnk->{'path'};
$p =~ s/.*\///;
$p =~ s/\.[^\.]*//; # strip kiwi build type
# grab everything related to the binlnk file
my $p = $bin;
$p =~ s/\.obsbinlnk$//;
$p =~ s/\.[^\.]*$//; # strip kiwi build type
push @d, grep {$_ ne $bin && /^\Q$p\E/} @dd;
# also grab all blobs
push @d, grep {/^_blob\./} @dd;
Expand Down Expand Up @@ -493,12 +493,12 @@ sub build {
unlink("$jobdatadir/$bin");
next;
}
$d = BSUtil::retrieve("$d/$bin", 1);
$d = BSUtil::retrieve("$jobdatadir/$bin", 1);
return ('broken', "$bin: bad obsbinlnk") unless $d;
# fixup path and write back
$d->{'path'} =~ s/[^\/]+$//;
$d->{'path'} .= $packid;
BSUtil::store("$jobdatadir/.$bin". "$jobdatadir/$bin", $d);
$d->{'path'} =~ s/.*\///;
$d->{'path'} = "../$packid/$d->{'path'}";
BSUtil::store("$jobdatadir/.$bin", "$jobdatadir/$bin", $d);
} else {
if (%binaryfilter) {
unlink("$jobdatadir/$bin");
Expand Down

0 comments on commit db28aee

Please sign in to comment.