From 8f8c0a3c93937fc7186ae8d92192ec2fe301f17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Fri, 17 Nov 2023 17:58:32 +0100 Subject: [PATCH] Handle zstd compressed primary.xml as well (bsc#1217269) --- 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 {