From 37089ea422ec8d486b132a1f7027286f2dbcfebe Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 8 May 2006 20:26:14 +0000 Subject: [PATCH] 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 --- pym/portage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.26.2