From e5ed3f86d0c3a4ad0a8e89e86568ac9c5c0580f7 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Tue, 23 Jan 2018 01:03:31 +0000 Subject: [PATCH] Fix error message suggesting to run invalid command "zap -a" (#1132) The message showed up, when you apk-static download could not be verified. What the user needs to do instead is checking if openssl is installed, and possibly delete the http cache ("zap -hc"). --- pmb/chroot/apk_static.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmb/chroot/apk_static.py b/pmb/chroot/apk_static.py index 5a143dd3..f46e904c 100644 --- a/pmb/chroot/apk_static.py +++ b/pmb/chroot/apk_static.py @@ -107,8 +107,9 @@ def verify_signature(args, files, sigkey_path): os.unlink(files["sig"]["temp_path"]) os.unlink(files["apk"]["temp_path"]) raise RuntimeError("Failed to validate signature of apk.static." - " There's something wrong with the archive - run 'pmbootstrap" - " zap -a' and try again!") + " Either openssl is not installed, or the" + " download failed. Run 'pmbootstrap zap -hc' to" + " delete the download and try again.") def extract(args, version, apk_path):