Use the new LZMA (XZ) magic

This commit is contained in:
Jindrich Novy 2008-11-25 14:11:08 +01:00
parent c8d0ea1c72
commit 5dfa17a77c
1 changed files with 3 additions and 3 deletions

View File

@ -355,9 +355,9 @@ int rpmFileIsCompressed(const char * file, rpmCompressedMagic * compressed)
} else if ((magic[0] == 0120) && (magic[1] == 0113) &&
(magic[2] == 0003) && (magic[3] == 0004)) { /* pkzip */
*compressed = COMPRESSED_ZIP;
} else if ((magic[0] == 0xff) && (magic[1] == 0x4c) &&
(magic[2] == 0x5a) && (magic[3] == 0x4d) &&
(magic[4] == 0x41) && (magic[5] == 0x00)) {
} else if ((magic[0] == 0xfd) && (magic[1] == 0x37) &&
(magic[2] == 0x7a) && (magic[3] == 0x58) &&
(magic[4] == 0x5a) && (magic[5] == 0x00)) {
/* new style lzma with magic */
*compressed = COMPRESSED_LZMA;
} else if (((magic[0] == 0037) && (magic[1] == 0213)) || /* gzip */