From: Zac Medico Date: Mon, 8 May 2006 20:26:14 +0000 (-0000) Subject: Use os.path.realpath instead of portage.abssymlink to resolve /etc/make.profile becau... X-Git-Tag: v2.1_rc1~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=37089ea422ec8d486b132a1f7027286f2dbcfebe;p=portage.git 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 --- 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(