diff options
author | Jindrich Novy <jnovy@redhat.com> | 2008-04-22 12:32:59 +0200 |
---|---|---|
committer | Jindrich Novy <jnovy@redhat.com> | 2008-04-22 12:32:59 +0200 |
commit | 341266ae26e6685d1d870b28533469c653355bb7 (patch) | |
tree | 0d445184fea3cefa06e78fe9b5836e75663588d6 /build | |
parent | 91123cd04354afadcf62ecf2b6aa069c8bee86d2 (diff) | |
download | rpm-341266ae26e6685d1d870b28533469c653355bb7.tar.gz rpm-341266ae26e6685d1d870b28533469c653355bb7.tar.bz2 rpm-341266ae26e6685d1d870b28533469c653355bb7.zip |
Allow lzma payload in writeRPM()
Diffstat (limited to 'build')
-rw-r--r-- | build/pack.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/build/pack.c b/build/pack.c index 9c957bc87..1867fbe47 100644 --- a/build/pack.c +++ b/build/pack.c @@ -379,6 +379,9 @@ rpmRC writeRPM(Header *hdrp, unsigned char ** pkgidp, const char *fileName, compr = "bzip2"; /* Add prereq on rpm version that understands bzip2 payloads */ (void) rpmlibNeedsFeature(h, "PayloadIsBzip2", "3.0.5-1"); + } else if (strcmp(s+1, "lzdio") == 0) { + compr = "lzma"; + (void) rpmlibNeedsFeature(h, "PayloadIsLzma", "4.4.90-1"); } else { rpmlog(RPMLOG_ERR, _("Unknown payload compression: %s\n"), rpmio_flags); |