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/_emerge/
Date: Mon, 29 Sep 2014 18:29:36
Message-Id: 1412011221.e2b3790d3ea8d017e7ae9885d336878780996e8b.dol-sen@gentoo
1 commit: e2b3790d3ea8d017e7ae9885d336878780996e8b
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 11 17:05:17 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=e2b3790d
7
8 _emerge/main.py: Set portage._sync_mode for --sync
9
10 This allows repos with non-existent directories to be available.
11 If the new repo is set for auto-sync, then it can be created with the sync module's new().
12
13 ---
14 pym/_emerge/main.py | 4 ++++
15 1 file changed, 4 insertions(+)
16
17 diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
18 index 4b51b39..7e8a800 100644
19 --- a/pym/_emerge/main.py
20 +++ b/pym/_emerge/main.py
21 @@ -1033,6 +1033,10 @@ def emerge_main(args=None):
22 elif myaction == "moo":
23 print(COWSAY_MOO % platform.system())
24 return os.EX_OK
25 + elif myaction == "sync":
26 + # need to set this to True now in order for the repository config
27 + # loading to allow new repos with non-existent directories
28 + portage._sync_mode = True
29
30 # Portage needs to ensure a sane umask for the files it creates.
31 os.umask(0o22)