From: Simon Stelling Date: Wed, 3 May 2006 17:07:02 +0000 (-0000) Subject: readd not-so pointless if statement X-Git-Tag: v2.1_rc1~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b;p=portage.git readd not-so pointless if statement svn path=/main/trunk/; revision=3312 --- 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: