summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-22 17:22:04 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-23 18:08:05 -0800
commit32a91f4b3918b9b4682faf04b76e1197b02d3243 (patch)
tree4e5d12ba40118018e7f944ad9d74f1cd3d96ca3a /pym
parent9b1ced02f87e3da8041f666bbdb412d64acc0868 (diff)
downloadportage-32a91f4b3918b9b4682faf04b76e1197b02d3243.tar.gz
portage-32a91f4b3918b9b4682faf04b76e1197b02d3243.tar.bz2
portage-32a91f4b3918b9b4682faf04b76e1197b02d3243.zip
repoman: enable dep check with empty KEYWORDS
Since no KEYWORDS are set, and those are normally used to decide which profiles to check, we use an empty profile with effective ACCEPT_KEYWORDS set to **.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/package/ebuild/_config/LocationsManager.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py
index 83d61050f..7c53ac775 100644
--- a/pym/portage/package/ebuild/_config/LocationsManager.py
+++ b/pym/portage/package/ebuild/_config/LocationsManager.py
@@ -38,7 +38,7 @@ class LocationsManager(object):
self._check_var_directory("PORTAGE_CONFIGROOT", self.config_root)
self.abs_user_config = os.path.join(self.config_root, USER_CONFIG_PATH)
- if not config_profile_path:
+ if config_profile_path is None:
config_profile_path = \
os.path.join(self.config_root, PROFILE_PATH)
if os.path.isdir(config_profile_path):
@@ -51,12 +51,16 @@ class LocationsManager(object):
else:
self.profile_path = None
else:
+ # NOTE: repoman may pass in an empty string
+ # here, in order to create an empty profile
+ # for checking dependencies of packages with
+ # empty KEYWORDS.
self.profile_path = config_profile_path
# The symlink might not exist or might not be a symlink.
self.profiles = []
- if self.profile_path is not None:
+ if self.profile_path:
try:
self._addProfile(os.path.realpath(self.profile_path))
except ParseError as e: