Skip to content

Commit

Permalink
[backend] publisher: use uniq filenames for SHA512 repomd meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Schröter committed Jan 26, 2023
1 parent 12fdb5d commit 4d12aaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ sub createrepo_rpmmd {
push @createrepoargs, '--filelists_ext' if $options{'filelists_ext'};
my @legacyargs;
if ($options{'sha512'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha512';
push @legacyargs, '--unique-md-filenames', '--checksum=sha512';
} elsif ($options{'legacy'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha';
} else {
Expand Down Expand Up @@ -1313,7 +1313,7 @@ sub createpatterns_rpmmd {
my @legacyargs;
my %options = map {$_ => 1} @{$options || []};
if ($options{'sha512'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha512';
push @legacyargs, '--unique-md-filenames', '--checksum=sha512';
} elsif ($options{'legacy'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha';
} else {
Expand Down Expand Up @@ -1391,7 +1391,7 @@ sub createpatterns_comps {
my @legacyargs;
my %options = map {$_ => 1} @{$options || []};
if ($options{'sha512'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha512';
push @legacyargs, '--unique-md-filenames', '--checksum=sha512';
} elsif ($options{'legacy'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha';
} else {
Expand Down

0 comments on commit 4d12aaf

Please sign in to comment.