Skip to content

Commit

Permalink
[backend] fix SHA compression calculation of delta stored archives
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 28, 2017
1 parent e334e86 commit 92fc227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSSrcrep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ sub addfile {
close F;
my $upload_sha = $ctx->hexdigest();
# get the sha256 sum for the already existing file
open(F, '<', "$srcrep/$packid/$md5-$filename") || die("$srcrep/$packid/$md5-$filename: $!\n");
fileopen($projid, $packid, $filename, $md5, \*F) || die("$srcrep/$packid/$md5-$filename: $!\n");
$ctx = Digest::SHA->new(256);
$ctx->addfile(*F);
close F;
Expand Down

0 comments on commit 92fc227

Please sign in to comment.