From dbde5b5eb4d897ec4fd1b8ffaf75dadf393c852b Mon Sep 17 00:00:00 2001 From: Simon Stelling Date: Wed, 3 May 2006 17:07:02 +0000 Subject: readd not-so pointless if statement svn path=/main/trunk/; revision=3312 --- bin/ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/ebuild') 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: -- cgit v1.2.3-1-g7c22