1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-27 07:06:13 +01:00
github.com_openSUSE_osc/osc/util
Marcus Huewe 2d0c974296 Add cmp function to packagequery module
cmp(a, b) returns
-1 if a < b
 0 if a == 0
 1 if a > b

This is needed since python3 has no cmp function anymore.

All credits for this go to Marco Strigl <mstrigl@suse.com> (see
PR#483 [1]).

[1] https://github.com/openSUSE/osc/pull/483
2019-01-27 16:12:57 +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 Use with statement in ArFile.saveTo 2019-01-15 17:18:50 +01:00
archquery.py Fix ArchQuery.rpmvercmp if one of its arguments is None 2019-01-27 15:50:35 +01:00
cpio.py Use with statement in CpioRead._copyin_file 2019-01-15 20:49:26 +01:00
debquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
packagequery.py Add cmp function to packagequery module 2019-01-27 16:12:57 +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