summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-06-04 03:42:40 +0000
committerZac Medico <zmedico@gentoo.org>2006-06-04 03:42:40 +0000
commite99df8c3192237de411757b8bc32a3fc0a117048 (patch)
tree42f7345899724b9a58d404355e30115ac2971f07 /pym
parent10a1a7aab5c679adfdbd8c8a88ba42991daaef95 (diff)
downloadportage-e99df8c3192237de411757b8bc32a3fc0a117048.tar.gz
portage-e99df8c3192237de411757b8bc32a3fc0a117048.tar.bz2
portage-e99df8c3192237de411757b8bc32a3fc0a117048.zip
Raise a ParseError if the profile has a parent file containing a nonexistant parent.
svn path=/main/trunk/; revision=3455
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index da3394b09..deaad848f 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1035,6 +1035,9 @@ class config:
mypath, parents[0]))
if os.path.exists(mypath):
self.profiles.insert(0, mypath)
+ else:
+ raise portage_exception.ParseError(
+ "Specified parent not found: '%s'" % parents_file)
if os.environ.has_key("PORTAGE_CALLER") and os.environ["PORTAGE_CALLER"] == "repoman":
pass