summaryrefslogtreecommitdiffstats
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
parent4ecd279c5a9ca277f12323071f0cf3efdcf0a432 (diff)
downloadportage-42255057b96856f3198bb6b68f04ceb241653920.tar.gz
portage-42255057b96856f3198bb6b68f04ceb241653920.tar.bz2
portage-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 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))