Skip to content

Commit

Permalink
[backend] use correct cachekey for slsa provenance files
Browse files Browse the repository at this point in the history
This was broken with one of the last refactors.
  • Loading branch information
mlschroe committed Mar 22, 2023
1 parent c734b86 commit c5f1c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -1863,7 +1863,7 @@ sub getbinaries_kiwiproduct {
}
my @s = stat("$ddir/$filename.new.rpm");
if (@s && checkbv("$ddir/$filename.new.rpm", $bv)) {
my $cachekey = $bv->{'hdrmd5'} ? "$bv->{'hdrmd5'}$rpmhdrs_only" : $bv->{'md5sum'};
my $cachekey = $bv->{'hdrmd5'} ? "$bv->{'hdrmd5'}$rpmhdrs_only" : "$bv->{'md5sum'}.extra";
my ($cacheid) = get_cachefile($prpa, $cachekey);
$cachenew{"$ddir/$filename"} = [$cacheid, $s[7], "$ddir/$filename"];
push @done, $filename;
Expand Down Expand Up @@ -1919,7 +1919,7 @@ sub getbinaries_kiwiproduct {
# in the future.
} elsif (checkbv("$ddir/$filename.new.rpm", $bv)) {
# we got the right file, put it in the cache
my $cachekey = $bv->{'hdrmd5'} ? "$bv->{'hdrmd5'}$rpmhdrs_only" : $bv->{'md5sum'};
my $cachekey = $bv->{'hdrmd5'} ? "$bv->{'hdrmd5'}$rpmhdrs_only" : "$bv->{'md5sum'}.extra";
my ($cacheid) = get_cachefile($prpa, $cachekey);
$cachenew{"$ddir/$filename"} = [$cacheid, $s[7], "$ddir/$filename"];
} else {
Expand Down

0 comments on commit c5f1c11

Please sign in to comment.