commit: 6c4362b52e545f3ffa1fad9a5ae9f89688aabb6c
Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
AuthorDate: Sun May 11 17:05:17 2014 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Oct 20 03:48:34 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=6c4362b5
_emerge/main.py: Set portage._sync_mode for --sync
This allows repos with non-existent directories to be available.
If the new repo is set for auto-sync, then it can be created with the sync
module's new().
---
pym/_emerge/main.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index a986cfe..b74005d 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -1046,6 +1046,10 @@ def emerge_main(args=None):
elif myaction == "moo":
print(COWSAY_MOO % platform.system())
return os.EX_OK
+ elif myaction == "sync":
+ # need to set this to True now in order for the repository
config
+ # loading to allow new repos with non-existent directories
+ portage._sync_mode = True
# Portage needs to ensure a sane umask for the files it creates.
os.umask(0o22)