summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 3f07785f8..e8c079d06 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1099,7 +1099,14 @@ class config:
"Parent '%s' not found: '%s'" % \
(parentPath, parentsFile))
self.profiles.append(currentPath)
- addProfile(os.path.realpath(self.profile_path))
+ try:
+ addProfile(os.path.realpath(self.profile_path))
+ except portage_exception.ParseError, e:
+ writemsg("!!! Unable to parse profile: '%s'\n" % \
+ self.profile_path, noiselevel=-1)
+ writemsg("!!! ParseError: %s\n" % str(e), noiselevel=-1)
+ del e
+ self.profiles = []
if local_config:
custom_prof = os.path.join(
config_root, CUSTOM_PROFILE_PATH.lstrip(os.path.sep))