rpm/backport-Handle-XZ-in-uncompress-macro.patch
2021-01-12 20:52:15 +08:00

28 lines
786 B
Diff

From 3d63df622037796279514a4da3ddc6807a102c1d Mon Sep 17 00:00:00 2001
From: Panu Matilainen <pmatilai@redhat.com>
Date: Fri, 27 Mar 2009 14:11:43 +0200
Subject: [PATCH] Handle XZ in %uncompress macro - should've been in commit
8078d0ba24662308b10d9eb0f0da978584b7e757
---
rpmio/macro.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/rpmio/macro.c b/rpmio/macro.c
index c55b9e2..32eb6ec 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -981,6 +981,9 @@ doFoo(MacroBuf mb, int negate, const char * f, size_t fn,
case COMPRESSED_LZMA:
sprintf(be, "%%__lzma -dc %s", b);
break;
+ case COMPRESSED_XZ:
+ sprintf(be, "%%__xz -dc %s", b);
+ break;
}
b = be;
} else if (STREQ("getenv", f, fn)) {
--
1.8.3.1