Handle XZ in %uncompress macro
authorPanu Matilainen <pmatilai@redhat.com>
Fri, 27 Mar 2009 12:11:43 +0000 (14:11 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Fri, 27 Mar 2009 12:11:43 +0000 (14:11 +0200)
- should've been in commit 8078d0ba24662308b10d9eb0f0da978584b7e757

rpmio/macro.c

index c55b9e2..32eb6ec 100644 (file)
@@ -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)) {