readd not-so pointless if statement
authorSimon Stelling <blubb@gentoo.org>
Wed, 3 May 2006 17:07:02 +0000 (17:07 -0000)
committerSimon Stelling <blubb@gentoo.org>
Wed, 3 May 2006 17:07:02 +0000 (17:07 -0000)
svn path=/main/trunk/; revision=3312

bin/ebuild

index 069dbb3ede9e9fb9df97efa19217fecb2f7db36a..a62585a5eaf77fc6e25606e4c422a38235753a4a 100755 (executable)
@@ -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: