Remove the single parent constraint in profiles.
authorZac Medico <zmedico@gentoo.org>
Sun, 8 Oct 2006 23:06:57 +0000 (23:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 8 Oct 2006 23:06:57 +0000 (23:06 -0000)
svn path=/main/trunk/; revision=4625

pym/portage.py

index 1a6aa256d6822e1f17bd64cd290481f56dd4882d..bc70d5ec848252cb8f38a4ce12c161d4439963f8 100644 (file)
@@ -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))