Skip to content

Commit

Permalink
[backend] do not delete the repodata key files in deleterepo_arch
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Jul 28, 2016
1 parent ea8d1d8 commit 955a751
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/bs_publish
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ sub deleterepo_arch {
my ($extrep) = @_;
for my $arch (ls($extrep)) {
next unless -d "$extrep/$arch";
next if $arch eq 'repodata' || $arch eq 'repocache' || $arch eq 'media.1' || $arch eq 'descr';
for (grep {/\.(?:\?db|db\.tar\.gz|files|files\.tar\.gz|key)(?:\.sig)?$/} ls("$extrep/$arch")) {
unlink("$extrep/$arch/$_");
}
Expand Down

0 comments on commit 955a751

Please sign in to comment.