ebuild: account for symlink in /var/db/pkg path
authorZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 15:10:46 +0000 (08:10 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 27 Oct 2010 15:10:46 +0000 (08:10 -0700)
bin/ebuild

index 93859327dc5049e8c7c1b7ef5df22508d374d6c9..f7008b1b5c9efd25841a157a0869e3fa20771add 100755 (executable)
@@ -131,7 +131,7 @@ ebuild = portage.normalize_path(ebuild)
 ebuild_portdir = os.path.realpath(
        os.path.dirname(os.path.dirname(os.path.dirname(ebuild))))
 ebuild = os.path.join(ebuild_portdir, *ebuild.split(os.path.sep)[-3:])
-vdb_path = os.path.join(portage.settings['EROOT'], VDB_PATH)
+vdb_path = os.path.realpath(os.path.join(portage.settings['EROOT'], VDB_PATH))
 
 # Make sure that portdb.findname() returns the correct ebuild.
 if ebuild_portdir != vdb_path and \