Alien fails for lzma-compressed rpms
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
alien (Debian) |
New
|
Undecided
|
Unassigned | ||
alien (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: alien
When trying to convert a RPM which was compressed using the LZMA method alien fails, e.g.
~/System/src$ sudo alien -v jskycat-
Unpacking of 'jskycat-
This happens on Ubuntu 8.10 with both the original and newest rpm and alien packages (from Karmic). The reason is that cpio cannot handle LZMA-compressed output of rpm2cpio. Replacing the two instances instances of
"rpm2cpio ".$this->filename." | in Rpm.pm
with
"rpm2cpio ".$this->filename." | lzma -d |
solves the problem. However, it leads to an error now for uncompressed RPMs. So it should be checked beforehand if a RPM is compressed using LZMA or not.
tags: | added: patch |
Attached patch for Rpm.pm from alien-8.78 detects LZMA packed CPIO archives, and allows them to be worked with, and retains ability to work with standard RPMs.
Please test...