summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/main.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-06-30 21:33:42 +0000
committerZac Medico <zmedico@gentoo.org>2009-06-30 21:33:42 +0000
commitf2d79bd71046d1b5b9a9c949c667739159ab5c98 (patch)
tree4d872afadd1e984371a0a3ce58fa67ba156b7d8d /pym/_emerge/main.py
parentd7f6174284a3d97613c2f5b8cee48fccfd22dcf8 (diff)
downloadportage-f2d79bd71046d1b5b9a9c949c667739159ab5c98.tar.gz
portage-f2d79bd71046d1b5b9a9c949c667739159ab5c98.tar.bz2
portage-f2d79bd71046d1b5b9a9c949c667739159ab5c98.zip
Bug #275945 - Add a new --avoid-update which tries to avoid updating packages
which possible. Thanks to Sebastian Mingramm (few) <s.mingramm@gmx.de> for this patch. svn path=/main/trunk/; revision=13745
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r--pym/_emerge/main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index f73bc6db4..087493c4d 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -65,6 +65,7 @@ options=[
"--searchdesc", "--selective",
"--skipfirst",
"--tree",
+"--avoid-update",
"--update",
"--usepkg", "--usepkgonly",
"--verbose",
@@ -1060,6 +1061,11 @@ def emerge_main():
noiselevel=-1)
return 1
+ if "--avoid-update" in myopts and "--update" in myopts:
+ writemsg("!!! conflicting options given: " + \
+ "--update and --avoid-update\n", noiselevel=-1)
+ return 1
+
if settings.get("PORTAGE_DEBUG", "") == "1":
spinner.update = spinner.update_quiet
portage.debug=1