diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-08-16 10:11:29 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-08-16 10:11:29 -0700 |
commit | 1d2e1ee6ec7fd3d9a1e2713a19ef8a4f4db6ecf0 (patch) | |
tree | a65da81745180eec3ff73af2b9c4c01f59f9ce82 | |
parent | Initial cnf/make.conf.example.arm64.diff (bug 636674) (diff) | |
download | portage-1d2e1ee6.tar.gz portage-1d2e1ee6.tar.bz2 portage-1d2e1ee6.zip |
bin/ebuild: fix --debug to work during manifest generation
Reported-by: M. J. Everitt <m.j.everitt@iee.org>
-rwxr-xr-x | bin/ebuild | 6 |
1 files changed, 6 insertions, 0 deletions
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 |