1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-27 20:52:14 +01:00
Marcus Huewe 28eeff8683 Simplify rpmquery.unpack_string
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).
2019-01-14 16:40:09 +01:00
..
2014-08-13 17:30:12 +02:00
2019-01-14 16:40:09 +01:00