Skip to content

Commit

Permalink
[backend] bs_publish: support Debian's InRelease file
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 10, 2019
1 parent 6d873a2 commit c12e7c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,9 @@ EOL
push @signargs, @{$data->{'signargs'} || []};
qsystem($BSConfig::sign, @signargs, '-d', "$extrep/Release") && die(" sign failed: $?\n");
rename("$extrep/Release.asc","$extrep/Release.gpg");
BSUtil::cp("$extrep/Release", undef, "$extrep/InRelease.tmp");
qsystem($BSConfig::sign, @signargs, '-c', "$extrep/InRelease.tmp") && die(" sign failed: $?\n");
rename("$extrep/InRelease.tmp","$extrep/InRelease");
}
if ($BSConfig::sign) {
writestr("$extrep/Release.key", undef, $data->{'pubkey'}) if $data->{'pubkey'};
Expand Down

0 comments on commit c12e7c9

Please sign in to comment.