From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-881609-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7453413825A for <garchives@archives.gentoo.org>; Sun, 15 May 2016 08:41:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C18B2E0864; Sun, 15 May 2016 08:40:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E546E0864 for <gentoo-commits@lists.gentoo.org>; Sun, 15 May 2016 08:40:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EF6BF340C35 for <gentoo-commits@lists.gentoo.org>; Sun, 15 May 2016 08:40:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF2E296A for <gentoo-commits@lists.gentoo.org>; Sun, 15 May 2016 08:40:50 +0000 (UTC) From: "Brian Dolbec" <dolsen@gentoo.org> 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" <dolsen@gentoo.org> Message-ID: <1463301542.a5b42d7c0846e25c880d92824186d5a556e4b116.dolsen@gentoo> Subject: [gentoo-commits] proj/portage:repoman commit in: repoman/pym/repoman/ X-VCS-Repository: proj/portage X-VCS-Files: repoman/pym/repoman/metadata.py X-VCS-Directories: repoman/pym/repoman/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: a5b42d7c0846e25c880d92824186d5a556e4b116 X-VCS-Branch: repoman Date: Sun, 15 May 2016 08:40:50 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 73253531-46bc-4d74-bb2d-008efba837a1 X-Archives-Hash: 4d4adb740435ebe10e08c97b2ea35ecd commit: a5b42d7c0846e25c880d92824186d5a556e4b116 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Sun May 15 02:23:46 2016 +0000 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org> CommitDate: Sun May 15 08:39:02 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=a5b42d7c repoman/metadata.py: Add the local test path to metadata.xsd search repoman/pym/repoman/metadata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repoman/pym/repoman/metadata.py b/repoman/pym/repoman/metadata.py index a9ad3e8..77174f6 100644 --- a/repoman/pym/repoman/metadata.py +++ b/repoman/pym/repoman/metadata.py @@ -108,7 +108,11 @@ def get_metadata_xsd(repo_settings): @returns: path to the metadata.xsd file ''' metadata_xsd = None - for path in reversed(repo_settings.repo_config.eclass_db.porttrees): + paths = list(repo_settings.repo_config.eclass_db.porttrees) + paths.reverse() + # add the test copy + paths.append("/usr/lib/portage/cnf/") + for path in paths: path = os.path.join(path, 'metadata/xml-schema/metadata.xsd') if os.path.exists(path): metadata_xsd = path