From 915e3c0865ecee24cb31ead94d573b397ae67c51 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Sun, 7 Oct 2012 13:07:54 -0700 Subject: fix traceback caused by an extra level parameter in the error _output() calls. This caused the errors to not be printed. Bug 390127. --- layman/overlays/source.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layman/overlays/source.py b/layman/overlays/source.py index 843edf4..2b79f2c 100644 --- a/layman/overlays/source.py +++ b/layman/overlays/source.py @@ -34,7 +34,7 @@ def _supported(key, check_supported=None): def _resolve_command(command, _output): if os.path.isabs(command): if not os.path.exists(command): - _output('Program "%s" not found' % command, 6) + _output('Program "%s" not found' % command) return ('File', None) return ('File', command) else: @@ -45,7 +45,7 @@ def _resolve_command(command, _output): if os.path.exists(f): return ('Command', f) _output('Cound not resolve command ' +\ - '"%s" based on PATH "%s"' % (command, env_path), 6) + '"%s" based on PATH "%s"' % (command, env_path)) return ('Command', None) @@ -56,7 +56,7 @@ def require_supported(binaries, _output): if _output: _output(kind + ' ' + command + ' seems to be missing!' ' Overlay type "' + mtype + '" not support' - 'ed. Did you emerge ' + package + '?', 6) + 'ed. Did you emerge ' + package + '?') return False return True -- cgit v1.2.3-1-g7c22