summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Stelling <blubb@gentoo.org>2006-05-03 17:07:02 +0000
committerSimon Stelling <blubb@gentoo.org>2006-05-03 17:07:02 +0000
commitdbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b (patch)
treeb4edc311bed538da54e49fb0552929d5212e489e /bin/ebuild
parentremove pointless if statement (diff)
downloadportage-multirepo-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.tar.gz
portage-multirepo-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.tar.bz2
portage-multirepo-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.zip
readd not-so pointless if statement
svn path=/main/trunk/; revision=3312
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 069dbb3e..a62585a5 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: