commit: e1d416d9adef218b3389545057aa2601aafd337e Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun May 11 16:46:09 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Tue Sep 30 00:42:26 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e1d416d9
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 = []