From: Zac Medico Date: Sun, 8 Oct 2006 23:06:57 +0000 (-0000) Subject: Remove the single parent constraint in profiles. X-Git-Tag: v2.1.2~680 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=42255057b96856f3198bb6b68f04ceb241653920;p=portage.git Remove the single parent constraint in profiles. svn path=/main/trunk/; revision=4625 --- diff --git a/pym/portage.py b/pym/portage.py index 1a6aa256d..bc70d5ec8 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -969,10 +969,9 @@ class config: parentsFile = os.path.join(currentPath, "parent") if os.path.exists(parentsFile): parents = grabfile(parentsFile) - if len(parents) != 1: + if not parents: raise portage_exception.ParseError( - "Expected 1 parent and got %i: '%s'" % \ - (len(parents), parents_file)) + "Empty parent file: '%s'" % parents_file) for parentPath in parents: parentPath = normalize_path(os.path.join( currentPath, parentPath))