From 82db881fdfbe8893cb84625a2e9783d154ae5910 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 23 Jul 2013 22:07:42 +0200 Subject: [PATCH] portage.package.ebuild.getmaskingreason.getmaskingreason(): Stop using PORTDIR and PORTDIR_OVERLAY. --- pym/portage/package/ebuild/getmaskingreason.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pym/portage/package/ebuild/getmaskingreason.py b/pym/portage/package/ebuild/getmaskingreason.py index 1c167140e..53895749a 100644 --- a/pym/portage/package/ebuild/getmaskingreason.py +++ b/pym/portage/package/ebuild/getmaskingreason.py @@ -68,13 +68,10 @@ def getmaskingreason(mycpv, metadata=None, settings=None, mycp = pkg.cp - # XXX- This is a temporary duplicate of code from the config constructor. - locations = [os.path.join(settings["PORTDIR"], "profiles")] + locations = [] + for repo in settings.repositories[pkg.repo].masters + (settings.repositories[pkg.repo],): + locations.append(os.path.join(repo.location, "profiles")) locations.extend(settings.profiles) - for ov in portage.util.shlex_split(settings["PORTDIR_OVERLAY"]): - profdir = os.path.join(normalize_path(ov), "profiles") - if os.path.isdir(profdir): - locations.append(profdir) locations.append(os.path.join(settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH)) locations.reverse() -- 2.26.2