[yum-commits] output.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Mon Jul 15 14:49:36 UTC 2013
output.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 539f6443be49c0f87e163276e3eea876df8ee70b
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Mon Jul 15 13:28:30 2013 +0200
updatesObsoletesList: add repoid arg. BZ 984297
diff --git a/output.py b/output.py
index 38449bb..cf9e985 100755
--- a/output.py
+++ b/output.py
@@ -851,7 +851,7 @@ class YumOutput:
print self.fmtKeyValFill(_("Description : "),self._enc(pkg.description))
print ""
- def updatesObsoletesList(self, uotup, changetype, columns=None):
+ def updatesObsoletesList(self, uotup, changetype, columns=None, repoid=None):
"""Print a simple string that explains the relationship
between the members of an update or obsoletes tuple.
@@ -867,8 +867,11 @@ class YumOutput:
negative, the text in the column will be left justified,
and if it is positive, the text will be right justified.
The columns of output are the package name, version, and repository
+ :param repoid: a repoid that the new package should belong to
"""
(changePkg, instPkg) = uotup
+ if repoid and changePkg.repoid != repoid:
+ return
if columns is not None:
# New style, output all info. for both old/new with old indented
More information about the Yum-commits
mailing list