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 3E2DF1381F3 for ; Thu, 22 Aug 2013 16:22:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 047FFE0BD9; Thu, 22 Aug 2013 16:22:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 910E3E0BD9 for ; Thu, 22 Aug 2013 16:22:43 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A1FE833EC1F for ; Thu, 22 Aug 2013 16:22:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 57379E468F for ; Thu, 22 Aug 2013 16:22:41 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1377188542.1a6374733c62b1d131a0f2c9da6190364df6e3df.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/repository/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/repository/config.py X-VCS-Directories: pym/portage/repository/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 1a6374733c62b1d131a0f2c9da6190364df6e3df X-VCS-Branch: master Date: Thu, 22 Aug 2013 16:22:41 +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: 91a99836-f83a-43df-9c7a-87e76fb250ca X-Archives-Hash: 9199102f9cebeb1921cf611cb0908a83 commit: 1a6374733c62b1d131a0f2c9da6190364df6e3df Author: Zac Medico gentoo org> AuthorDate: Thu Aug 22 16:22:22 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Aug 22 16:22:22 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=1a637473 Skip main-repo warn if PORTDIR unset, bug #470006 --- pym/portage/repository/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 7b49eea..4c4a2eb 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -694,7 +694,7 @@ class RepoConfigLoader(object): prepos['DEFAULT'].main_repo = main_repo else: prepos['DEFAULT'].main_repo = None - if not portage._sync_disabled_warnings: + if portdir and not portage._sync_disabled_warnings: writemsg(_("!!! main-repo not set in DEFAULT and PORTDIR is empty.\n"), noiselevel=-1) if main_repo is not None and prepos[main_repo].priority is None: