From: Zac Medico Date: Wed, 25 Apr 2012 16:37:48 +0000 (-0700) Subject: LocationsManager: empty profiles_complex on error X-Git-Tag: v2.2.0_alpha102~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb9453f7466b7843c2ef6805bbeb9375de93c8ef;p=portage.git LocationsManager: empty profiles_complex on error This prevents an IndexError in code which assumes that profiles and profiles_complex are the same length. --- 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(