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 2AEEE13877A for ; Mon, 16 Jun 2014 15:18:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D143E0D53; Mon, 16 Jun 2014 15:18:51 +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 B0401E0D4A for ; Mon, 16 Jun 2014 15:18:50 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3EA234000D for ; Mon, 16 Jun 2014 15:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 1E4E9187DE for ; Mon, 16 Jun 2014 15:18:48 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1399955074.3005866289d8c674a8c62c696757b6567fa49a77.dol-sen@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: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 3005866289d8c674a8c62c696757b6567fa49a77 X-VCS-Branch: plugin-sync Date: Mon, 16 Jun 2014 15:18:48 +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: c82103b7-c67c-46a0-af0d-e1246542ea14 X-Archives-Hash: c9518a4e79be449f5e2ce41723ce8344 commit: 3005866289d8c674a8c62c696757b6567fa49a77 Author: Brian Dolbec gentoo org> AuthorDate: Sun May 11 17:05:17 2014 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue May 13 04:24:34 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=30058662 _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 3e9d7d1..785301b 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1017,6 +1017,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)