Skip to content

Commit

Permalink
Merge pull request #12499 from adrianschroeter/createrepo
Browse files Browse the repository at this point in the history
[backend] avoid warnings from createrepo
  • Loading branch information
adrianschroeter committed Apr 28, 2022
2 parents e6d9bb2 + cb8a915 commit e6c5520
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -610,17 +610,13 @@ sub createrepo_rpmmd {
}
my $repoinfo = $data->{'repoinfo'};
# create generic rpm-md meta data
# --update requires a newer createrepo version, tested with version 0.4.10
my @createrepoargs;
push @createrepoargs, '--changelog-limit', '20';
push @createrepoargs, map { ('--repo', $_ ) } @repotags;
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';
push @createrepoargs, '--filelists_ext' if $options{'filelists_ext'};
# 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 All @@ -647,6 +643,9 @@ sub createrepo_rpmmd {
push @updateargs, '--no-database';
if (-f "$extrep/repodata/repomd.xml") {
push @updateargs, '--update';
# 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';
}
if (qsystem($createrepo_bin, '-q', '-c', "$extrep/repocache", @updateargs, @createrepoargs, @legacyargs, $extrep)) {
die(" createrepo failed: $?\n") unless @updateargs;
Expand Down

0 comments on commit e6c5520

Please sign in to comment.