commit: d59c479206cf5cd866cc21f40d76ff9157c73e6c
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 16:46:09 2014 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Dec 1 21:49:40 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d59c4792
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 = []