summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-07-28 08:14:34 -0700
committerZac Medico <zmedico@gentoo.org>2010-07-28 08:14:34 -0700
commit0e622a638fe059aafde079eb552ab8e433510d41 (patch)
tree8aa70e03b7cb849a6956360bc64c7a3c764aec52 /pym/_emerge/actions.py
parent6c204167478b169a6639d711872dca332020b147 (diff)
downloadportage-0e622a638fe059aafde079eb552ab8e433510d41.tar.gz
portage-0e622a638fe059aafde079eb552ab8e433510d41.tar.bz2
portage-0e622a638fe059aafde079eb552ab8e433510d41.zip
Add a --package-moves[=n] option that can be used to control the
"Performing Global Updates" routine. This option is enabled by default.
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index e014b16d4..16c329bbe 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2289,7 +2289,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
# the only one that's been synced here.
action_metadata(settings, portdb, myopts, porttrees=[myportdir])
- if _global_updates(trees, mtimedb["updates"]):
+ if myopts.get('--package-moves') != 'n' and \
+ _global_updates(trees, mtimedb["updates"]):
mtimedb.commit()
# Reload the whole config from scratch.
settings, trees, mtimedb = load_emerge_config(trees=trees)