summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-12-16 21:42:07 +0000
committerZac Medico <zmedico@gentoo.org>2006-12-16 21:42:07 +0000
commit5d96649ac61ab51295b125b0dae33312fc009024 (patch)
treed0a068cf73e7a67f5c575a4c0b8aa3098c61c973 /pym
parent11805e737eab64804ea5ccf9aa6a9c5684664fec (diff)
downloadportage-5d96649ac61ab51295b125b0dae33312fc009024.tar.gz
portage-5d96649ac61ab51295b125b0dae33312fc009024.tar.bz2
portage-5d96649ac61ab51295b125b0dae33312fc009024.zip
Make dep_check validate all depstring atoms in order to prevent problems from occuring later due to unexpected invalid atoms.
svn path=/main/trunk/; revision=5304
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 22e6455d6..0f1ba998f 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -3647,6 +3647,9 @@ def _expand_new_virtuals(mysplit, edebug, mydbapi, mysettings, myroot="/",
newsplit.append(_expand_new_virtuals(x, edebug, mydbapi,
mysettings, myroot=myroot, trees=trees, **kwargs))
continue
+ if not isvalidatom(x, allow_blockers=True):
+ raise portage_exception.ParseError(
+ "invalid atom: '%s'" % x)
mykey = dep_getkey(x)
if not mykey.startswith("virtual/"):
newsplit.append(x)