diff options
author | Marius Mauch <genone@gentoo.org> | 2007-03-09 10:31:54 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2007-03-09 10:31:54 +0000 |
commit | 0ecce044fa65b6a2a1bcf0dc967ef3d6200023c4 (patch) | |
tree | b0c07a1b13095bfcb1552b5edd9b161c14562138 | |
parent | 93680a9e556c918a68ca85faa4d0814c2f652c5b (diff) | |
download | portage-0ecce044fa65b6a2a1bcf0dc967ef3d6200023c4.tar.gz portage-0ecce044fa65b6a2a1bcf0dc967ef3d6200023c4.tar.bz2 portage-0ecce044fa65b6a2a1bcf0dc967ef3d6200023c4.zip |
Display message about --buildpkgonly restriction in pretend mode as well
svn path=/main/trunk/; revision=6199
-rw-r--r-- | pym/emerge/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 8c2eaf4aa..2c64acada 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -4944,6 +4944,11 @@ def action_build(settings, trees, mtimedb, else: mydepgraph.display( mydepgraph.altlist(reversed=("--tree" in myopts))) + if ("--buildpkgonly" in myopts): + if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM): + print "\n!!! --buildpkgonly requires all dependencies to be merged." + print "!!! You have to merge the dependencies before you can build this package.\n" + sys.exit(1) else: if ("--buildpkgonly" in myopts): if not mydepgraph.digraph.hasallzeros(ignore_priority=DepPriority.MEDIUM): |