summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2014-03-05 00:32:31 -0500
committerGui Chen <gui.chen@intel.com>2014-03-05 08:47:22 +0200
commit1b719123a0abaac4adcfb879ebd04c12de1266c1 (patch)
tree3a86ad75e969723ee806c8156e19b432e130b2b1 /plugins
parent07b6acfa24e26700a415d5c2c6b1cb7ac011e6bd (diff)
downloadmic-1b719123a0abaac4adcfb879ebd04c12de1266c1.tar.gz
mic-1b719123a0abaac4adcfb879ebd04c12de1266c1.tar.bz2
mic-1b719123a0abaac4adcfb879ebd04c12de1266c1.zip
fix obsoletes ignored version issue
Fixes: #1382 Change-Id: I663a80703ba02091f87fa9aca23be9ec5ba0d1b9 Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/backend/zypppkgmgr.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/backend/zypppkgmgr.py b/plugins/backend/zypppkgmgr.py
index 87b33b3..b323da9 100644
--- a/plugins/backend/zypppkgmgr.py
+++ b/plugins/backend/zypppkgmgr.py
@@ -127,7 +127,7 @@ class Zypp(BackendPlugin):
def whatObsolete(self, pkg):
query = zypp.PoolQuery()
query.addKind(zypp.ResKind.package)
- query.addAttribute(zypp.SolvAttr.obsoletes, pkg)
+ query.addDependency(zypp.SolvAttr.obsoletes, pkg.name(), pkg.edition())
query.setMatchExact()
for pi in query.queryResults(self.Z.pool()):
return pi
@@ -233,7 +233,7 @@ class Zypp(BackendPlugin):
continue
found = True
- obspkg = self.whatObsolete(item.name())
+ obspkg = self.whatObsolete(item)
if arch:
if arch == str(item.arch()):
item.status().setToBeInstalled (zypp.ResStatus.USER)
@@ -261,7 +261,7 @@ class Zypp(BackendPlugin):
continue
found = True
- obspkg = self.whatObsolete(item.name())
+ obspkg = self.whatObsolete(item)
markPoolItem(obspkg, pitem)
break