From fb9453f7466b7843c2ef6805bbeb9375de93c8ef Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 25 Apr 2012 09:37:48 -0700 Subject: [PATCH] LocationsManager: empty profiles_complex on error This prevents an IndexError in code which assumes that profiles and profiles_complex are the same length. --- pym/portage/package/ebuild/_config/LocationsManager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/portage/package/ebuild/_config/LocationsManager.py b/pym/portage/package/ebuild/_config/LocationsManager.py index 8ad41f747..9c73612fe 100644 --- a/pym/portage/package/ebuild/_config/LocationsManager.py +++ b/pym/portage/package/ebuild/_config/LocationsManager.py @@ -90,6 +90,7 @@ class LocationsManager(object): self.profile_path, noiselevel=-1) writemsg("!!! ParseError: %s\n" % str(e), noiselevel=-1) self.profiles = [] + self.profiles_complex = [] if self._user_config and self.profiles: custom_prof = os.path.join( -- 2.26.2