From 49c9a70f9f20d0468bc3bf73780777502c967585 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 20 Nov 2023 08:58:08 +0100 Subject: [PATCH] Handle zstd compressed primary.xml as well (bsc#1217269) (#966) --- createrepomddeps | 3 +++ 1 file changed, 3 insertions(+) diff --git a/createrepomddeps b/createrepomddeps index 587638373..0d67db387 100755 --- a/createrepomddeps +++ b/createrepomddeps @@ -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 {