+2009-01-08: Paul Varner <fuzzyray@gentoo.org>
+ * equery: Fix package.py to account for PORTDIR being a symbolic link
+ when checking if a package is in an overlay. (Bug #253968)
+
2008-11-25: Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Fixes for non-linux Gentoo systems. Add patch from
igli to fix find command to comply with POSIX. Change awk calls to
#
# $Header$
+import os
from errors import FatalError
import portage
from gentoolkit import *
self._db = None
self._settings = settings
self._settingslock = settingslock
+ self._portdir_path = settings["PORTDIR"]
+ if os.path.islink(self._portdir_path):
+ self._portdir_path = os.path.join(os.path.dirname(self._portdir_path), os.readlink(self._portdir_path))
def get_name(self):
"""Returns base name of package, no category nor version"""
def is_overlay(self):
"""Returns true if the package is in an overlay."""
dir,ovl = portage.portdb.findname2(self._cpv)
- return ovl != settings["PORTDIR"]
+ return ovl != self._portdir_path
def is_masked(self):
"""Returns true if this package is masked against installation. Note: We blindly assume that