psm.c, rpm2cpio.c: updated for xz decompression

This commit is contained in:
Alexey Tourbin 2009-09-23 05:15:08 +04:00
parent 0cded3969f
commit 0b739a3a9f
2 changed files with 4 additions and 0 deletions

View File

@ -1873,6 +1873,8 @@ assert(psm->mi == NULL);
t = stpcpy(t, ".bzdio"); t = stpcpy(t, ".bzdio");
if (!strcmp(payload_compressor, "lzma")) if (!strcmp(payload_compressor, "lzma"))
t = stpcpy(t, ".lzdio"); t = stpcpy(t, ".lzdio");
if (!strcmp(payload_compressor, "xz"))
t = stpcpy(t, ".xzdio");
rc = RPMRC_OK; rc = RPMRC_OK;
} break; } break;

View File

@ -55,6 +55,8 @@ int main(int argc, char **argv)
t = stpcpy(t, ".bzdio"); t = stpcpy(t, ".bzdio");
if (!strcmp(payload_compressor, "lzma")) if (!strcmp(payload_compressor, "lzma"))
t = stpcpy(t, ".lzdio"); t = stpcpy(t, ".lzdio");
if (!strcmp(payload_compressor, "xz"))
t = stpcpy(t, ".xzdio");
} }
gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */ gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */