summaryrefslogtreecommitdiffstats
path: root/bin/ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild')
-rwxr-xr-xbin/ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ebuild b/bin/ebuild
index 069dbb3ed..a62585a5e 100755
--- a/bin/ebuild
+++ b/bin/ebuild
@@ -70,8 +70,9 @@ else:
reload(portage)
portage_ebuild = portage.portdb.findname(cpv)
- print "!!! %s does not seem to have a valid PORTDIR structure." % overlay
- sys.exit(1)
+ if not portage_ebuild or os.path.realpath(portage_ebuild) != ebuild:
+ print "!!! %s does not seem to have a valid PORTDIR structure." % overlay
+ sys.exit(1)
if len(pargs) > 1 and "config" in pargs: