From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BD95C138ACE for ; Mon, 1 Dec 2014 21:50:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A1ECEE086B; Mon, 1 Dec 2014 21:50:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC425E0875 for ; Mon, 1 Dec 2014 21:50:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3026C340543 for ; Mon, 1 Dec 2014 21:50:07 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B9466B4FF for ; Mon, 1 Dec 2014 21:50:05 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1417470580.e757fbbee36c06c537edf1f6581190a2ce81a31c.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:plugin-sync commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e757fbbee36c06c537edf1f6581190a2ce81a31c X-VCS-Branch: plugin-sync Date: Mon, 1 Dec 2014 21:50:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9724ad35-15f2-4a5e-b7c4-bfbd4921dabc X-Archives-Hash: 4b50ceeafc8aa6761fc67fc83f581c4b commit: e757fbbee36c06c537edf1f6581190a2ce81a31c Author: Brian Dolbec gentoo org> AuthorDate: Sun May 11 17:05:17 2014 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Dec 1 21:49:40 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e757fbbe _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 85cdc24..1506207 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1057,6 +1057,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)