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: Sat, 27 Sep 2014 02:20:56
Message-Id: 1411782044.48e6790a7098b1cabdfe74f956ae53e25eeda21b.dol-sen@gentoo
1 commit: 48e6790a7098b1cabdfe74f956ae53e25eeda21b
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: Sat Sep 27 01:40:44 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=48e6790a
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 = []