1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00
github.com_openSUSE_osc/osc/util
Marcus Huewe ebb2f2ee0d Add support for querying weak dependencies
The following abstract methods are added to the PackageQueryResult
class: recommends(), suggests(), supplements(), and enhances().
Note that not all package/metadata formats have a notion of these
weak dependencies.

              rpm   rpmmd   deb   arch
recommends     x      x      x
suggests       x      x      x     x
supplements    x      x
enhances       x      x      x

(where "x" represents "supported"). In case of an unsupported weak
dependency, the implementation returns an empty list.

We need the weak dependency support in order to fix #363 ("osc build
-p ../rpms/tw doesnt send recommends to the server which makes client
side build behave differently to server side build").
2017-12-26 23:14:47 +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 Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
rpmquery.py Add support for querying weak dependencies 2017-12-26 23:14:47 +01:00
safewriter.py python3 compatibility: except 2013-04-16 10:51:17 +02:00