Skip to content

Commit

Permalink
Merge pull request #12453 from adrianschroeter/fix_rpmmd_metadata
Browse files Browse the repository at this point in the history
[backend] fix broken additional metadata with createrepo_c 0.20
  • Loading branch information
adrianschroeter committed Apr 19, 2022
2 parents 7a7dac8 + 2289bff commit 60b2fac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/obs-server.spec
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Requires: perl(Date::Parse)
Requires: diffutils
PreReq: git-core
Requires: patch
Requires: createrepo_c
Requires: createrepo_c >= 0.20
Recommends: cron logrotate
# zsync for appimage signing
Recommends: zsync
Expand Down
3 changes: 3 additions & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,9 @@ sub createrepo_rpmmd {
push @createrepoargs, '--content', 'debug' if $data->{'dbgsplit'};
push @createrepoargs, '--content', 'update' if ($repoinfo->{'projectkind'} || '') eq 'maintenance_incident';
push @createrepoargs, '--content', 'update' if ($repoinfo->{'projectkind'} || '') eq 'maintenance_release';
# createrepo_c 0.20.0 defaults to keep always additional metadata. We must change
# to old behaviour or old data would stay forever when it got removed actually
push @createrepoargs, '--discard-additional-metadata';
my @legacyargs;
if ($options{'legacy'}) {
push @legacyargs, '--simple-md-filenames', '--checksum=sha';
Expand Down

0 comments on commit 60b2fac

Please sign in to comment.