From 9ed6332f2015e41f072f897764f550c5574ea96f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 22 Nov 2010 17:22:04 -0800 Subject: 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 **. --- pym/portage/package/ebuild/_config/LocationsManager.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pym') 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: -- cgit v1.2.3-1-g7c22