From a08ae8d300d9632d78865003c974175dcb90ce21 Mon Sep 17 00:00:00 2001 From: TheBrokenRail <17478432+TheBrokenRail@users.noreply.github.com> Date: Fri, 10 Jun 2022 20:40:35 -0400 Subject: [PATCH] Fix Another Small Typo Fixes ``` Traceback (most recent call last): File "/usr/local/bin/appimage-builder", line 8, in sys.exit(__main__()) File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/__main__.py", line 50, in __main__ invoker.execute(commands) File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/invoker.py", line 29, in execute command() File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/commands/apt_deploy.py", line 42, in __call__ apt_venv = self._setup_apt_venv() File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/commands/apt_deploy.py", line 60, in _setup_apt_venv apt_venv = Venv( File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/modules/deploy/apt/venv.py", line 39, in __init__ self._deps = shell.require_executables(DEPENDS_ON) File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/utils/shell.py", line 16, in require_executables paths[dep] = require_executable(dep) File "/usr/local/lib/python3.9/dist-packages/appimagebuilder/utils/shell.py", line 23, in require_executable raise CommandNotFoundError("Could not find '{exe}' on $PATH.".format(exe=dep)) NameError: name 'dep' is not defined ``` --- appimagebuilder/utils/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appimagebuilder/utils/shell.py b/appimagebuilder/utils/shell.py index c4adef5..7de17bd 100644 --- a/appimagebuilder/utils/shell.py +++ b/appimagebuilder/utils/shell.py @@ -20,7 +20,7 @@ def require_executables(executables: [str]): def require_executable(tool): tool_path = shutil.which(tool) if not tool_path: - raise CommandNotFoundError("Could not find '{exe}' on $PATH.".format(exe=dep)) + raise CommandNotFoundError("Could not find '{exe}' on $PATH.".format(exe=tool)) return tool_path