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 842BA138BF3 for ; Mon, 17 Feb 2014 20:35:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54FD4E0B16; Mon, 17 Feb 2014 20:35:23 +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 E6BDAE0B7C for ; Mon, 17 Feb 2014 20:35:22 +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 CC76933F8DC for ; Mon, 17 Feb 2014 20:35:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 3068F1872B for ; Mon, 17 Feb 2014 20:35:20 +0000 (UTC) From: "Sebastian Luther" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Luther" Message-ID: <1392669000.82187903f47e3deab8dbb578eb5cd54dad0fc04a.few@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/package/ebuild/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/package/ebuild/fetch.py X-VCS-Directories: pym/portage/package/ebuild/ X-VCS-Committer: few X-VCS-Committer-Name: Sebastian Luther X-VCS-Revision: 82187903f47e3deab8dbb578eb5cd54dad0fc04a X-VCS-Branch: master Date: Mon, 17 Feb 2014 20:35:20 +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: 30344156-4c40-464e-851c-45693ca8cb17 X-Archives-Hash: d8cc197fb8b2c087f99217dd8d2bdb8a commit: 82187903f47e3deab8dbb578eb5cd54dad0fc04a Author: Sebastian Luther gmx de> AuthorDate: Sat Feb 15 12:34:10 2014 +0000 Commit: Sebastian Luther gmx de > CommitDate: Mon Feb 17 20:30:00 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=82187903 Always warn about unknown mirrors (bug 501352) --- pym/portage/package/ebuild/fetch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/ebuild/fetch.py index 5316f03..5984d82 100644 --- a/pym/portage/package/ebuild/fetch.py +++ b/pym/portage/package/ebuild/fetch.py @@ -445,8 +445,9 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, filedict[myfile].extend(uris) thirdpartymirror_uris.setdefault(myfile, []).extend(uris) - if not filedict[myfile]: - writemsg(_("No known mirror by the name: %s\n") % (mirrorname)) + if mirrorname not in custommirrors and \ + mirrorname not in thirdpartymirrors: + writemsg(_("!!! No known mirror by the name: %s\n") % (mirrorname)) else: writemsg(_("Invalid mirror definition in SRC_URI:\n"), noiselevel=-1) writemsg(" %s\n" % (myuri), noiselevel=-1)