1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-21 17:56:19 +02:00
github.com_openSUSE_osc/osc/util
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
..
__init__.py - don't fail if terminal encoding doesn't support unicode (fixes #660445) 2011-02-11 02:45:13 +01:00
ar.py - util.ar: do not import StringIO from the cStringIO module 2013-04-22 09:24:48 +02:00
archquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
cpio.py Resolve PEP8 issue E231 2014-08-13 17:30:12 +02:00
debquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
packagequery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
repodata.py Do not choke on operators < and > in spec files 2018-11-28 10:55:17 +01:00
rpmquery.py Simplify rpmquery.unpack_string 2019-01-14 16:40:09 +01:00
safewriter.py Fix and simplify util.safewriter.SafeWriter 2018-03-09 16:55:56 +01:00