RE: file extraction from payload
Jeff Johnson <[email protected]> Wed, 15 Oct 2003 11:22:12 -0400
| Newsgroups | gmane.linux.redhat.rpm.python |
|---|---|
| Message-ID | <[email protected]> |
> Extract files from packages, probably most useful with non-installed > ones. rpm2cpio|cpio can of course be used but I'd rather have a real > python API for this. While I understand your need, your request has almost nothing to do with rpm-python. Go find cpio bindings (they probably don't exist, haven't looked), open the file and do what /usr/lib/rpm/rpm2cpio.sh does, i.e. position to beginning of payload and uncompress the cpio ball. OTOH, if I wanted to solve this problem, I'd write bindings for ChipX86's libcomprex, and then somehow inject the cpio (and tar and ar and ...) bindings into the culture of python, probably by grafting yet more crap into rpm-python, as that is my only entry point into the Python culture. He he, Petri dishes with agar, rpm-python is my infection loop. Off to the incubator ;-) 73 de Jeff