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 B5697138BF3 for ; Sat, 15 Feb 2014 12:40:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 08528E0AB7; Sat, 15 Feb 2014 12:40:32 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5AB12E0AAA for ; Sat, 15 Feb 2014 12:40:31 +0000 (UTC) Received: from localhost.localdomain ([88.150.32.217]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LhkiL-1VS6Qu0RLl-00msLB for ; Sat, 15 Feb 2014 13:40:29 +0100 From: Sebastian Luther To: gentoo-portage-dev@lists.gentoo.org Subject: [gentoo-portage-dev] [PATCH] Always warn about unknown mirrors (bug 501352) Date: Sat, 15 Feb 2014 13:40:23 +0100 Message-Id: <1392468023-10900-1-git-send-email-SebastianLuther@gmx.de> X-Mailer: git-send-email 1.8.3.2 X-Provags-ID: V03:K0:f1mrbH4OeQ5BMWAZ5+F/ocDdBwkIhZFkOv08tHKZBCVfWiX9MkS hsrO2WdCw6e7LsJbbIHt0he5eSaLXhnlLjvxcW3QVesW0MXbbWIgddCtUuy0i8BfhDOxDOw QP3BQFZPZKJgt4MaLUASBlij+5K3SE+wyozC+xs5H/p2+NaNlm0ufVJfiJlwFskWgK7pb8N 7hzBlRD0YhRCTGEMZH+BA== 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: 0bee1fd6-c788-4c9f-8964-df7aa9cd3ccd X-Archives-Hash: ae98f02dea6c4638ca08b76ac2b83e8e --- 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) -- 1.8.3.2