summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-10-13 12:40:55 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-10-13 12:40:55 +0000
commitbbde6db573b47ea1c185d1f788dad4daa7e21b4c (patch)
treea2d78ad13f411ae794cfa06df073d2ba12f12242 /bin/ebuild
parentSet PORTDIR_OVERLAY (rather than PORTDIR) when portage wants to use a differe... (diff)
downloadportage-multirepo-bbde6db573b47ea1c185d1f788dad4daa7e21b4c.tar.gz
portage-multirepo-bbde6db573b47ea1c185d1f788dad4daa7e21b4c.tar.bz2
portage-multirepo-bbde6db573b47ea1c185d1f788dad4daa7e21b4c.zip
Use realpath instead of abspath to ensure that symlinks are correctly accounted for.
svn path=/main/branches/2.0/; revision=2129
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 45f2442e..559d4af3 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -25,7 +25,7 @@ import portage, portage_util
root = os.path.normpath(os.environ.get("ROOT", "") + "/")
-ebuild = os.path.abspath(pargs.pop(0))
+ebuild = os.path.realpath(pargs.pop(0))
if not os.path.exists(ebuild):
print "'%s' does not exist." % ebuild
@@ -37,7 +37,7 @@ cpv = "/".join(ebuild_split[-2:])[:-7]
portage_ebuild = portage.portdb.findname(cpv)
-if not portage_ebuild or os.path.abspath(portage_ebuild) != ebuild:
+if not portage_ebuild or os.path.realpath(portage_ebuild) != ebuild:
os.environ["PORTDIR_OVERLAY"] = "/".join(ebuild_split[:-2])
print "Adjusting PORTDIR_OVERLAY to '%s'..." % os.environ["PORTDIR_OVERLAY"]
reload(portage)