From 42255057b96856f3198bb6b68f04ceb241653920 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 8 Oct 2006 23:06:57 +0000 Subject: [PATCH] Remove the single parent constraint in profiles. svn path=/main/trunk/; revision=4625 --- pym/portage.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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)) -- 2.26.2