summaryrefslogtreecommitdiffstats
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
parentca7373de5b8b0e2797ec44c13e85f0433642c0f5 (diff)
downloadportage-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.tar.gz
portage-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.tar.bz2
portage-dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b.zip
readd not-so pointless if statement
svn path=/main/trunk/; revision=3312
-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: