1 --- rpm-4.5/rpmio/macro.c~ 2008-06-10 02:08:37.000000000 +0300
2 +++ rpm-4.5/rpmio/macro.c 2008-06-10 02:08:59.476044991 +0300
9 #define rpmError fprintf
10 #define rpmIsVerbose() (0)
11 @@ -2106,6 +2107,7 @@ int isCompressed(const char * file, rpmC
14 unsigned char magic[13];
17 *compressed = COMPRESSED_NOT;
19 @@ -2131,6 +2133,11 @@ int isCompressed(const char * file, rpmC
23 + /* Tar archives will be recognized by filename. */
24 + end = strchr(file, '\0');
26 + if (ext > file && !strcasecmp(ext, ".tar")) return rc;
28 if (magic[0] == 'B' && magic[1] == 'Z')
29 *compressed = COMPRESSED_BZIP2;