mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-26 04:02:11 +01:00
There is no need to unpack a single byte because it is not affected by (byte) endianness (and that's what struct.unpack is about). Moreover, rpmquery.unpack_string now supports an optional encoding parameter, which could be used by the python3 port to decode a string. Note: in general we cannot assume that all strings in a rpm are utf-8 encoded (it is possible to build a rpm that contains illegal utf-8 sequences).