diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-05-21 20:27:05 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-05-21 20:27:05 +0200 |
commit | 9ecb704361e551d02ef0a9d4a88f217e59e48c8d (patch) | |
tree | 735112198c67ad3590298ac711b7dfb108aa8532 /portato/backend | |
parent | adb8acd0b90992a8281494c76d30a529bde45fea (diff) | |
download | portato-9ecb704361e551d02ef0a9d4a88f217e59e48c8d.tar.gz portato-9ecb704361e551d02ef0a9d4a88f217e59e48c8d.tar.bz2 portato-9ecb704361e551d02ef0a9d4a88f217e59e48c8d.zip |
Ported to new find_packages API
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 8536292..8aebb85 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -337,7 +337,7 @@ class PortageSystem (SystemInterface): return new_packages def get_updated_packages (self): - packages = self.get_new_packages(self.find_all_installed_packages(withVersion = False)) + packages = self.get_new_packages(self.find_packages(set = "installed", withVersion = False)) packages = [x for x in packages if x is not None and not x.is_installed()] return packages @@ -353,7 +353,7 @@ class PortageSystem (SystemInterface): world.close() # append system packages - packages.extend(unique_array([p.get_cp() for p in self.find_all_system_packages()])) + packages.extend(unique_array([p.get_cp() for p in self.find_packages(set = "system")])) states = [(["RDEPEND"], True)] if self.with_bdeps(): @@ -379,11 +379,11 @@ class PortageSystem (SystemInterface): tempDeep = False if not p.is_installed(): - oldList = self.find_installed_packages(p.get_slot_cp()) + oldList = self.find_packages(p.get_slot_cp(), "installed") if oldList: old = oldList[0] # we should only have one package here - else it is a bug else: - oldList = self.sort_package_list(self.find_installed_packages(p.get_cp())) + oldList = self.sort_package_list(self.find_packages(p.get_cp(), "installed")) if not oldList: info(_("Found a not installed dependency: %s.") % p.get_cpv()) oldList = [p] @@ -433,7 +433,7 @@ class PortageSystem (SystemInterface): if not pkg: continue if 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): + for inst in self.find_packages(pkg.get_cp(), "installed", only_cpv = True): if self.cpv_matches(inst, i): debug("The installed %s matches %s. Discarding upgrade to masked version.", inst, i) cont = True |