summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-04-11 23:56:14 +0100
committerRichard Hughes <richard@hughsie.com>2008-04-11 23:56:51 +0100
commit125d5c9d3c4ac5b53fe97cc91885c412670b83f8 (patch)
tree8ad9d7a865351811404749a8433076cc14746bc7
parent096ac3cb4f65c84c92077d0c192e597f7062d4eb (diff)
yum: use the filter in get-depends, else we tell the user we are going to download files that already exist
-rw-r--r--backends/yum/helpers/yumBackend.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/yum/helpers/yumBackend.py b/backends/yum/helpers/yumBackend.py
index 9adfef20f..95b5f1a52 100644
--- a/backends/yum/helpers/yumBackend.py
+++ b/backends/yum/helpers/yumBackend.py
@@ -773,6 +773,7 @@ class PackageKitYumBackend(PackageKitBaseBackend):
self.percentage(None)
self.status(STATUS_INFO)
+ fltlist = filters.split(';')
name = package.split(';')[0]
pkg,inst = self._findPackage(package)
results = {}
@@ -785,10 +786,10 @@ class PackageKitYumBackend(PackageKitBaseBackend):
pkgver = self._get_package_ver(pkg)
id = self.get_package_id(pkg.name, pkgver, pkg.arch, pkg.repoid)
- if self._is_inst(pkg):
+ if self._is_inst(pkg) and FILTER_NOT_INSTALLED not in fltlist:
self.package(id, INFO_INSTALLED, pkg.summary)
else:
- if self._installable(pkg):
+ if self._installable(pkg) and FILTER_NOT_INSTALLED not in fltlist:
self.package(id, INFO_AVAILABLE, pkg.summary)
def update_system(self):