From 73af911b614baa96418a648e1b5107d84b1a9bdf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 19 Feb 2010 21:16:11 +0000 Subject: [PATCH] Use Atom.cp instead of dep_getkey. svn path=/main/trunk/; revision=15399 --- pym/portage/sets/files.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/sets/files.py b/pym/portage/sets/files.py index f4b35037e..02cf8d7f1 100644 --- a/pym/portage/sets/files.py +++ b/pym/portage/sets/files.py @@ -19,7 +19,7 @@ from portage.sets.base import PackageSet, EditablePackageSet from portage.sets import SetConfigError, SETPREFIX, get_boolean from portage.env.loaders import ItemFileLoader, KeyListFileLoader from portage.env.validators import ValidAtomValidator -from portage import dep_getkey, cpv_getkey +from portage import cpv_getkey __all__ = ["StaticFileSet", "ConfigFileSet", "WorldSelectedSet"] @@ -305,7 +305,7 @@ class WorldSelectedSet(EditablePackageSet): mykey = cpv_getkey(cpv) newworldlist = [] for x in worldlist: - if dep_getkey(x) == mykey: + if x.cp == mykey: matches = vardb.match(x, use_cache=0) if not matches: #zap our world entry -- 2.26.2