Skip to content

Commit

Permalink
Handle zstd compressed primary.xml as well (bsc#1217269) (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller authored Nov 20, 2023
1 parent 07f2808 commit 49c9a70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions createrepomddeps
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ for my $url (@args) {
use IO::Uncompress::Gunzip qw($GunzipError);
$fh = new IO::Uncompress::Gunzip $fh or die "Error opening $u: $GunzipError\n";
}
if ($u =~ /\.zst$/) {
open ($fh, "-|", "zstd", "-dc", "$dir/repodata/$u");
}
my $parsefn;
if ($opts->{'dump'}) {
$parsefn = sub {
Expand Down

0 comments on commit 49c9a70

Please sign in to comment.