commit: 5f8d42361964d3e9654a33941f6056f2c75a69ec Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun May 11 16:46:09 2014 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Mon Oct 20 03:48:34 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=5f8d4236
emaint/modules/sync/sync.py: Set portage _sync_mode immediately This way it will not discard non-existent repos if thier directory does not exist. --- pym/portage/emaint/modules/sync/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/portage/emaint/modules/sync/sync.py b/pym/portage/emaint/modules/sync/sync.py index 3aa318a..ab7591d 100644 --- a/pym/portage/emaint/modules/sync/sync.py +++ b/pym/portage/emaint/modules/sync/sync.py @@ -6,6 +6,8 @@ import os import sys import portage +portage._internal_caller = True +portage._sync_mode = True from portage.localization import _ from portage.output import bold, create_color_func from portage.sync import get_syncer @@ -169,7 +171,6 @@ class SyncRepos(object): return [('None', os.EX_OK)] # Portage needs to ensure a sane umask for the files it creates. os.umask(0o22) - portage._sync_mode = True sync_manager = get_syncer(self.emerge_config.target_config.settings, emergelog) retvals = []