From 895823111601bb73204daf5cdaf86d401d91983c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 9 Jul 2011 20:24:49 -0700 Subject: [PATCH] depgraph: reject USE conditionals in arguments --- pym/_emerge/depgraph.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 64ed50e27..2a5848ce7 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -2082,6 +2082,14 @@ class depgraph(object): else: atom = null_atom + if atom.use and atom.use.conditional: + writemsg( + ("\n\n!!! '%s' contains a conditional " + \ + "which is not allowed.\n") % (x,), noiselevel=-1) + writemsg("!!! Please check ebuild(5) for full details.\n") + self._dynamic_config._skip_restart = True + return (0,[]) + args.append(AtomArg(arg=x, atom=atom, root_config=root_config)) -- 2.26.2