summaryrefslogtreecommitdiffstats
path: root/pym/portage/_global_updates.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-15 14:40:28 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-15 14:40:28 -0700
commit2859965bb164f322d2e169d8534cdc535a3f9901 (patch)
tree79e432d4e889f213c00b28e0d8592b640f786193 /pym/portage/_global_updates.py
parente3f0d11c8615010506052793689207b1c3b3bd86 (diff)
downloadportage-2859965bb164f322d2e169d8534cdc535a3f9901.tar.gz
portage-2859965bb164f322d2e169d8534cdc535a3f9901.tar.bz2
portage-2859965bb164f322d2e169d8534cdc535a3f9901.zip
fixpackages: don't use PORTAGE_CALLER
Diffstat (limited to 'pym/portage/_global_updates.py')
-rw-r--r--pym/portage/_global_updates.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/_global_updates.py b/pym/portage/_global_updates.py
index be8a73492..72fd5c4fd 100644
--- a/pym/portage/_global_updates.py
+++ b/pym/portage/_global_updates.py
@@ -15,7 +15,7 @@ from portage.update import grab_updates, parse_updates, update_config_files, upd
from portage.util import grabfile, shlex_split, \
writemsg, writemsg_stdout, write_atomic
-def _global_updates(trees, prev_mtimes, quiet=False):
+def _global_updates(trees, prev_mtimes, quiet=False, if_mtime_changed=True):
"""
Perform new global updates if they exist in 'profiles/updates/'
subdirectories of all active repositories (PORTDIR + PORTDIR_OVERLAY).
@@ -73,10 +73,10 @@ def _global_updates(trees, prev_mtimes, quiet=False):
continue
try:
- if mysettings.get("PORTAGE_CALLER") == "fixpackages":
- update_data = grab_updates(updpath)
+ if if_mtime_changed:
+ update_data = grab_updates(updpath, prev_mtimes=prev_mtimes)
else:
- update_data = grab_updates(updpath, prev_mtimes)
+ update_data = grab_updates(updpath)
except DirectoryNotFound:
continue
myupd = []