summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-05-08 20:26:14 +0000
committerZac Medico <zmedico@gentoo.org>2006-05-08 20:26:14 +0000
commit37089ea422ec8d486b132a1f7027286f2dbcfebe (patch)
tree0bba4dfccbc97c9340f8732e43a9d4acb1d2beb9
parent80f33830278ab14b1505df9974488d81d363529e (diff)
downloadportage-37089ea422ec8d486b132a1f7027286f2dbcfebe.tar.gz
portage-37089ea422ec8d486b132a1f7027286f2dbcfebe.tar.bz2
portage-37089ea422ec8d486b132a1f7027286f2dbcfebe.zip
Use os.path.realpath instead of portage.abssymlink to resolve /etc/make.profile because abssymlink throws an OSError: [Errno 22] Invalid argument exception when repoman passes in an absolute profile path that isn't a symlink.
svn path=/main/trunk/; revision=3334
-rw-r--r--pym/portage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 96fb8bb36..2054945ff 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1017,7 +1017,7 @@ class config:
if self.profile_path is None:
self.profiles = []
else:
- self.profiles = [abssymlink(self.profile_path)]
+ self.profiles = [os.path.realpath(self.profile_path)]
mypath = self.profiles[0]
while os.path.exists(os.path.join(mypath, "parent")):
mypath = os.path.normpath(os.path.join(