From 66645836c289690d6f86efadfc224874d7352826 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 11 Oct 2010 18:16:53 -0700 Subject: [PATCH] Use user_location for PORTDIR variable. --- pym/portage/package/ebuild/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 45eae7871..8330390e5 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -481,8 +481,11 @@ class config(object): self.repositories = load_repository_config(self) #filling PORTDIR and PORTDIR_OVERLAY variable for compatibility - self["PORTDIR"] = self.repositories.mainRepoLocation() - self.backup_changes("PORTDIR") + main_repo = self.repositories.mainRepo() + if main_repo is not None: + main_repo = main_repo.user_location + self["PORTDIR"] = main_repo + self.backup_changes("PORTDIR") portdir_overlay = list(self.repositories.repoUserLocationList()) if self["PORTDIR"] in portdir_overlay: portdir_overlay.remove(self["PORTDIR"]) -- 2.26.2