summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-04-25 09:37:48 -0700
committerZac Medico <zmedico@gentoo.org>2012-04-25 09:41:08 -0700
commitfb9453f7466b7843c2ef6805bbeb9375de93c8ef (patch)
tree27055b7f13e5c14623f08ce0c28d7fc8f3a7a18c
parentrepoman: fix portage.internal false positives (diff)
downloadportage-fb9453f7466b7843c2ef6805bbeb9375de93c8ef.tar.gz
portage-fb9453f7466b7843c2ef6805bbeb9375de93c8ef.tar.bz2
portage-fb9453f7466b7843c2ef6805bbeb9375de93c8ef.zip
LocationsManager: empty profiles_complex on error
This prevents an IndexError in code which assumes that profiles and profiles_complex are the same length.
-rw-r--r--pym/portage/package/ebuild/_config/LocationsManager.py1
1 files changed, 1 insertions, 0 deletions
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(