From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1042186-garchives=archives.gentoo.org@lists.gentoo.org> 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 390B2138334 for <garchives@archives.gentoo.org>; Thu, 16 Aug 2018 17:15:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 162BCE086A; Thu, 16 Aug 2018 17:15:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1618E086A for <gentoo-commits@lists.gentoo.org>; Thu, 16 Aug 2018 17:15:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 10CD8335D00 for <gentoo-commits@lists.gentoo.org>; Thu, 16 Aug 2018 17:15:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7A3843A0 for <gentoo-commits@lists.gentoo.org>; Thu, 16 Aug 2018 17:15:21 +0000 (UTC) From: "Zac Medico" <zmedico@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, "Zac Medico" <zmedico@gentoo.org> Message-ID: <1534439489.1d2e1ee6ec7fd3d9a1e2713a19ef8a4f4db6ecf0.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/ebuild X-VCS-Directories: bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 1d2e1ee6ec7fd3d9a1e2713a19ef8a4f4db6ecf0 X-VCS-Branch: master Date: Thu, 16 Aug 2018 17:15:21 +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: ddc6183c-a501-40be-8433-c45dceacf87d X-Archives-Hash: a44c6b5a94714d58bcae45868ae27412 commit: 1d2e1ee6ec7fd3d9a1e2713a19ef8a4f4db6ecf0 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Thu Aug 16 17:11:29 2018 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Thu Aug 16 17:11:29 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=1d2e1ee6 bin/ebuild: fix --debug to work during manifest generation Reported-by: M. J. Everitt <m.j.everitt <AT> iee.org> bin/ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/ebuild b/bin/ebuild index 5aa3ead95..8b58988c4 100755 --- a/bin/ebuild +++ b/bin/ebuild @@ -104,6 +104,12 @@ if not opts.ignore_default_opts: debug = opts.debug force = opts.force +if debug: + # Ensure that all config instances have this setting, + # including the one that's used by portdbapi for aux_get. + os.environ['PORTAGE_DEBUG'] = '1' + portage._reset_legacy_globals() + # do this _after_ 'import portage' to prevent unnecessary tracing if debug and "python-trace" in portage.features: import portage.debug