summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-10-08 23:06:57 +0000
committerZac Medico <zmedico@gentoo.org>2006-10-08 23:06:57 +0000
commit42255057b96856f3198bb6b68f04ceb241653920 (patch)
tree70eccfb3668af2ec546414a63c81d846f4a0d97a
parentClean up depgraph.select_files() to use one list of tuples instead 2 separate... (diff)
downloadportage-idfetch-42255057b96856f3198bb6b68f04ceb241653920.tar.gz
portage-idfetch-42255057b96856f3198bb6b68f04ceb241653920.tar.bz2
portage-idfetch-42255057b96856f3198bb6b68f04ceb241653920.zip
Remove the single parent constraint in profiles.
svn path=/main/trunk/; revision=4625
-rw-r--r--pym/portage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 1a6aa256..bc70d5ec 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))