case COMPRESSED_XZ:
t = "%{__xz} -dc";
break;
+ case COMPRESSED_LZIP:
+ t = "%{__lzip} -dc";
+ break;
}
zipper = rpmGetPath(t, NULL);
if (needtar) {
AC_PATH_PROG(__UNZIP, unzip, /usr/bin/unzip, $MYPATH)
AC_PATH_PROG(__ID, id, /usr/bin/id, $MYPATH)
AC_PATH_PROG(__INSTALL, install, /usr/bin/install, $MYPATH)
+AC_PATH_PROG(__LZIP, lzip, /usr/bin/lzip, $MYPATH)
AC_PATH_PROG(__XZ, xz, /usr/bin/xz, $MYPATH)
AC_PATH_PROG(__MAKE, make, /usr/bin/make, $MYPATH)
AC_PATH_PROG(__MKDIR, mkdir, /bin/mkdir, $MYPATH)
%__id_u %{__id} -u
%__install @__INSTALL@
%__ln_s @LN_S@
+%__lzip @__LZIP@
# Deprecated, use %__xz instead.
%__lzma %__xz --format=lzma
%__xz @__XZ@
case COMPRESSED_XZ:
sprintf(be, "%%__xz -dc %s", b);
break;
+ case COMPRESSED_LZIP:
+ sprintf(be, "%%__lzip -dc %s", b);
+ break;
}
b = be;
} else if (STREQ("getenv", f, fn)) {
(magic[4] == 0x5a) && (magic[5] == 0x00)) {
/* new style xz (lzma) with magic */
*compressed = COMPRESSED_XZ;
+ } else if ((magic[0] == 'L') && (magic[1] == 'Z') &&
+ (magic[2] == 'I') && (magic[3] == 'P')) {
+ *compressed = COMPRESSED_LZIP;
} else if (((magic[0] == 0037) && (magic[1] == 0213)) || /* gzip */
((magic[0] == 0037) && (magic[1] == 0236)) || /* old gzip */
((magic[0] == 0037) && (magic[1] == 0036)) || /* pack */
COMPRESSED_BZIP2 = 2, /*!< bzip2 can handle */
COMPRESSED_ZIP = 3, /*!< unzip can handle */
COMPRESSED_LZMA = 4, /*!< lzma can handle */
- COMPRESSED_XZ = 5 /*!< xz can handle */
+ COMPRESSED_XZ = 5, /*!< xz can handle */
+ COMPRESSED_LZIP = 6 /*!< lzip can handle */
} rpmCompressedMagic;
/** \ingroup rpmfileutil