Raise a ParseError if the profile has a parent file containing a nonexistant parent.
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Jun 2006 03:42:40 +0000 (03:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Jun 2006 03:42:40 +0000 (03:42 -0000)
svn path=/main/trunk/; revision=3455

pym/portage.py

index da3394b09f18e8bbc720d31ad2f7ff4da8dc3e4a..deaad848f82e804914e13d6fd1a0af7445815b8e 100644 (file)
@@ -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