commit: d7102ce5476065b309bc40ca76810b16a2c610e6 Author: Devan Franchini <twitch153 <AT> gentoo <DOT> org> AuthorDate: Fri Sep 19 19:44:45 2014 +0000 Commit: Devan Franchini <twitch153 <AT> gentoo <DOT> org> CommitDate: Sat Sep 20 17:44:15 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=d7102ce5
config.py: Fixes output use in proxies() This patch was supplied by Maxim Odinintsev (gwynn <AT> devc.net) to properly use layman's output from it's private _options variable. X-Gentoo-Bug: 523258 X-Gentoo-Bug-URL: https://bugs.gentoo.org/523258 --- layman/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layman/config.py b/layman/config.py index 4fbff5d..3e13899 100644 --- a/layman/config.py +++ b/layman/config.py @@ -294,7 +294,8 @@ class BareConfig(object): elif os.getenv(proxy): proxies[proxy.split('_')[0]] = os.getenv(proxy) if self.config and proxies == {}: - self.output.debug("Warning: unable to determine proxies.", 6) + self._options['output'].debug("Warning: unable to determine prox" + + "ies.", 6) return proxies