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").
This commit is contained in:
Oliver Smith 2018-01-23 01:03:31 +00:00 committed by GitHub
parent 3c8a93fa7b
commit e5ed3f86d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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):