From f8e2398f5d965e43c860f79739c0934652ff4c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 16 May 2008 17:47:27 +0200 Subject: Fixed 'find_best_match' and 'update_world' to better mimic portage's behavior --- portato/backend/portage/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'portato') diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 10fa9bc..459fe07 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -177,7 +177,7 @@ class PortageSystem (SystemInterface): raise if self._version >= (2,1,5) or only_installed: - t += [pkg.get_cpv() for pkg in self.find_installed_packages(search_key) if not pkg.is_masked()] + t += [pkg.get_cpv() for pkg in self.find_installed_packages(search_key) if not (pkg.is_testing(True) or pkg.is_masked())] if t: t = unique_array(t) @@ -454,7 +454,7 @@ class PortageSystem (SystemInterface): else: for pkg in bm: if not pkg: continue - if pkg.is_masked() or pkg.is_testing(True): # check to not update unnecessairily + if not pkg.is_installed() and (pkg.is_masked() or pkg.is_testing(True)): # check to not update unnecessairily cont = False for inst in self.find_installed_packages(pkg.get_cp(), only_cpv = True): if self.cpv_matches(inst, i): -- cgit v1.2.3