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 0CB18138CCF for ; Thu, 14 May 2015 10:50:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3FEC4E090B; Thu, 14 May 2015 10:50:46 +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 D4F7BE08FE for ; Thu, 14 May 2015 10:50:45 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 79845340C92; Thu, 14 May 2015 10:50:44 +0000 (UTC) From: Mike Frysinger To: gentoo-portage-dev@lists.gentoo.org Cc: Bertrand Simonnet Subject: [gentoo-portage-dev] [PATCH] config: skip missing profiles/repo_name warning when using layout.conf:repo-name Date: Thu, 14 May 2015 06:50:42 -0400 Message-Id: <1431600642-13750-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.4.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org X-Archives-Salt: 18aab5ac-b0ea-4457-aa62-74761450abee X-Archives-Hash: b2cf550a810e0f786a1116ebf8461197 From: Bertrand Simonnet The repo name is considered missing if there is no explicit "repo_name" file. But if it's set in layout.conf via repo-name, we can skip that. Otherwise we end up with copy & paste spew. --- pym/portage/repository/config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index e44b619..7401b3a 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -252,6 +252,7 @@ class RepoConfig(object): # useful when having two copies of the same repo enabled # to avoid modifying profiles/repo_name in one of them self.name = layout_data['repo-name'] + self.missing_repo_name = False for value in ('allow-missing-manifest', 'allow-provide-virtual', 'cache-formats', -- 2.4.0