Gentoo Archives: gentoo-commits

From: Brian Dolbec <brian.dolbec@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/portage/emaint/modules/sync/
Date: Tue, 30 Sep 2014 00:47:02
Message-Id: 1412037746.e1d416d9adef218b3389545057aa2601aafd337e.dol-sen@gentoo
1 commit: e1d416d9adef218b3389545057aa2601aafd337e
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: Tue Sep 30 00:42:26 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e1d416d9
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 = []