diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-11-22 17:22:04 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-11-22 17:22:04 -0800 |
commit | 9ed6332f2015e41f072f897764f550c5574ea96f (patch) | |
tree | dffc0d6a7dc632afed7c6143a8c8ee9b7c6dd503 /pym | |
parent | 1e805cc38d72577d1e78c98ba9c6d9ecea36ea4c (diff) | |
download | portage-9ed6332f2015e41f072f897764f550c5574ea96f.tar.gz portage-9ed6332f2015e41f072f897764f550c5574ea96f.tar.bz2 portage-9ed6332f2015e41f072f897764f550c5574ea96f.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.py | 8 |
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 b857f3262..14cfaa672 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: |