From e673c5c2d904d821719b2d21746ef91482acf8b4 Mon Sep 17 00:00:00 2001 From: Emanuele Giuseppe Esposito Date: Fri, 5 May 2023 06:22:57 -0400 Subject: ukify: typo in doc and print when package is missing If a package is missing, a subprocess is started with None as command argument. Error raised by subprocess is therefore not helpful at all to understand what needs to be done to fix that error. Also fix doc since systemd-stub will look for .cmdline files, and not .cmdline.efi files. Signed-off-by: Emanuele Giuseppe Esposito --- src/ukify/ukify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ukify') diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 7e9c7cc9ae..9db84afdbb 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -353,8 +353,10 @@ def find_tool(name, fallback=None, opts=None): if shutil.which(name) is not None: return name - return fallback + if fallback is None: + print(f"Tool {name} not installed!") + return fallback def combine_signatures(pcrsigs): combined = collections.defaultdict(list) -- cgit v1.2.1