aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2019-12-23 17:05:34 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2019-12-23 17:06:14 +0100
commit120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f (patch)
treecb6162278b12b2347ef88751e2724da6ec486b51
parent4fe92b2faa1dd90fa68b7fbddacb82a6a3094e5f (diff)
downloadperl-URPM-120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f.tar
perl-URPM-120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f.tar.gz
perl-URPM-120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f.tar.bz2
perl-URPM-120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f.tar.xz
perl-URPM-120dc78bdaa39fbda9b6b9340c5b18f1219bbc7f.zip
add support for synthesis compressed with zstd
-rw-r--r--NEWS2
-rw-r--r--URPM.xs4
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7fc5017..e297986 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add support for synthesis compressed with zstd
+
Version 5.22 - 21 September 2018
- fix CPAN indexation
diff --git a/URPM.xs b/URPM.xs
index eb0dbf2..1131f1d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -999,6 +999,8 @@ open_archive(char *filename, int *empty_archive) {
rfd = Fdopen(rfd, "r.bzip2");
else if (strcmp(buf.uncompress, "xz") || strcmp(buf.uncompress, "lzma"))
rfd = Fdopen(rfd, "r.xz");
+ else if (strcmp(buf.uncompress, "zstd"))
+ rfd = Fdopen(rfd, "r.zstd");
else {
free(rfd);
rfd = NULL;
@@ -2896,6 +2898,8 @@ Urpm_parse_synthesis__XS(urpm, filename, ...)
case COMPRESSED_LZMA:
case COMPRESSED_XZ:
t = "r.xz"; break;
+ case COMPRESSED_ZSTD:
+ t = "r.zstd"; break;
case COMPRESSED_OTHER:
default:
t = "r.gzip"; break;