1 |
commit: 651e1b56d44f2b47d5168a6753437e6da15f36af |
2 |
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 11 16:46:09 2014 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Sep 29 17:20:21 2014 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=651e1b56 |
7 |
|
8 |
emaint/modules/sync/sync.py: Set portage _sync_mode immediately |
9 |
|
10 |
This way it will not discard non-existent repos if thier directory does not exist. |
11 |
|
12 |
--- |
13 |
pym/portage/emaint/modules/sync/sync.py | 3 ++- |
14 |
1 file changed, 2 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/pym/portage/emaint/modules/sync/sync.py b/pym/portage/emaint/modules/sync/sync.py |
17 |
index 3aa318a..ab7591d 100644 |
18 |
--- a/pym/portage/emaint/modules/sync/sync.py |
19 |
+++ b/pym/portage/emaint/modules/sync/sync.py |
20 |
@@ -6,6 +6,8 @@ import os |
21 |
import sys |
22 |
|
23 |
import portage |
24 |
+portage._internal_caller = True |
25 |
+portage._sync_mode = True |
26 |
from portage.localization import _ |
27 |
from portage.output import bold, create_color_func |
28 |
from portage.sync import get_syncer |
29 |
@@ -169,7 +171,6 @@ class SyncRepos(object): |
30 |
return [('None', os.EX_OK)] |
31 |
# Portage needs to ensure a sane umask for the files it creates. |
32 |
os.umask(0o22) |
33 |
- portage._sync_mode = True |
34 |
|
35 |
sync_manager = get_syncer(self.emerge_config.target_config.settings, emergelog) |
36 |
retvals = [] |