From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 55832138330 for ; Thu, 6 Oct 2016 20:07:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D72BE0C2C; Thu, 6 Oct 2016 20:07:47 +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 7FB85E0C2C for ; Thu, 6 Oct 2016 20:07:47 +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 AAC383412C7 for ; Thu, 6 Oct 2016 20:07:46 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D36D924A7 for ; Thu, 6 Oct 2016 20:07:42 +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: <1475784458.abf62a8889702c6fa42a30807636e119d7aa312b.mgorny@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: repoman/pym/repoman/modules/scan/fetch/ X-VCS-Repository: proj/portage X-VCS-Files: repoman/pym/repoman/modules/scan/fetch/fetches.py X-VCS-Directories: repoman/pym/repoman/modules/scan/fetch/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: abf62a8889702c6fa42a30807636e119d7aa312b X-VCS-Branch: master Date: Thu, 6 Oct 2016 20:07:42 +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: 6c12b032-87cd-4df1-94a9-efa30821fa9c X-Archives-Hash: e888d4e7479aa17b02513571d5cca5d7 commit: abf62a8889702c6fa42a30807636e119d7aa312b Author: Michał Górny gentoo org> AuthorDate: Thu Oct 6 08:32:13 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Oct 6 20:07:38 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=abf62a88 repoman: Disable SRC_URI.mirror warnings when there is only 1 mirror Disable SRC_URI.mirror warnings when the thirdpartymirrors entry consists of no more than 1 mirror. In this case, the mirror:// is really no different than direct URL, and it most likely means the entry is only kept for backwards compatibility. Closes: https://github.com/gentoo/portage/pull/58 repoman/pym/repoman/modules/scan/fetch/fetches.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repoman/pym/repoman/modules/scan/fetch/fetches.py b/repoman/pym/repoman/modules/scan/fetch/fetches.py index 555f34f..9ee3c65 100644 --- a/repoman/pym/repoman/modules/scan/fetch/fetches.py +++ b/repoman/pym/repoman/modules/scan/fetch/fetches.py @@ -36,6 +36,12 @@ class FetchChecks(ScanBase): self.thirdpartymirrors = {} profile_thirdpartymirrors = self.repo_settings.repoman_settings.thirdpartymirrors().items() for mirror_alias, mirrors in profile_thirdpartymirrors: + # Skip thirdpartymirrors that do not list more than one mirror + # anymore. There is no point in using mirror:// there and this + # means that the thirdpartymirrors entry will most likely + # be removed anyway. + if len(mirrors) <= 1: + continue for mirror in mirrors: if not mirror.endswith("/"): mirror += "/"