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:14:40 +0000 (08:14 -0700)
bin/ebuild

index ecb37951e0b2bb535025dba7a1fc4364d06c1b57..9b12e7ee5b93cc188c7702262901efad44216e4e 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 \