rpmfile
rpmfile copied to clipboard
Read rmp archive files
For https://github.com/srossross/rpmfile/issues/48
Sorry if the title isn't clear, but basically when an index record says that its data is of type, say, `RPM_INT16_TYPE`, the corresponding data should be interpreted as an unsigned...
The module currently has no function `is_rpmfile() -> bool` (similiar to https://docs.python.org/3/library/tarfile.html#tarfile.is_tarfile). It could check the magic bytes from the file lead and return accordingly.
According to https://rpm-software-management.github.io/rpm/manual/tags.html , tag `1014` should called `license` and not `copyright`. Here is one example: https://github.com/srossross/rpmfile/blob/185ac915eb701d15bcb2338ad63ca81366f4ce16/rpmfile/headers.py#L41 https://github.com/srossross/rpmfile/blob/185ac915eb701d15bcb2338ad63ca81366f4ce16/rpmfile/rpmdefs.py#L59 https://github.com/srossross/rpmfile/blob/185ac915eb701d15bcb2338ad63ca81366f4ce16/rpmfile/rpmdefs.py#L69 In the main cli command you are already changing the header...
Many RPM files contains symlinks or "ghost files". Using rpmfile, there is no clear way to determine if the rpm member is a real file. RPM: bash-4.2.46-35.el7_9.x86_64y3oetfci.rpm In the headers...
When I run test_extract on a rpmbuild isolated VM, i.e. no network, the test fails. It would be good if these tests used test data that is included in the...
tag number 269 is declared as sha-1 in the rpm source: [original rpm source](https://github.com/rpm-software-management/rpm/blob/8ab279ae6b3855fca5946dafd11c38e91adc9904/lib/rpmtag.h#L62) (line 62) in the headers section it is identified as "md5": [headers](https://github.com/srossross/rpmfile/blob/208ac8055c85cc4effab1cf510e4efde8b98f3e1/rpmfile/headers.py#L13) (line 13) `RPMTAG_SIG_BASE =...
`Read rmp archive files` should rather be: `Read RPM archive files`
The mode is needed to keep the permissions of the extracted file in the file system. Most important are the executable flags which are currently gone. Now the rpmfile -x...
While using the rpmfile I found some strange behavior in the following function: ``` def data_file(self): """Return the uncompressed raw CPIO data of the RPM archive.""" if self._data_file is None:...