forked from Mirror/pmbootstrap
pmb.helpers.apk_static: Update "malicious server" message
While this hypothetically could be triggered by a malicious server,
more likely is that this would be caused by a bug in pmbootstrap. As
such, soften the message a bit and also remove references to the removed
-m flag.
Fixes ebfda16d6d
Part-of: https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/merge_requests/2635
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
752a3a98f5
commit
3f09e87346
1 changed files with 4 additions and 6 deletions
|
@ -141,12 +141,10 @@ def extract(version: str, apk_path: Path) -> None:
|
|||
if not version.startswith(f"{version_bin}"):
|
||||
os.unlink(temp_path)
|
||||
raise RuntimeError(
|
||||
f"Downloaded apk-tools-static-{version}.apk,"
|
||||
" but the apk binary inside that package reports"
|
||||
f" to be version: {version_bin}!"
|
||||
" Looks like a downgrade attack"
|
||||
" from a malicious server! Switch the server (-m)"
|
||||
" and try again."
|
||||
f"Downloaded apk-tools-static-{version}.apk, but the apk binary inside that package"
|
||||
f" reports to be version: {version_bin}! This could potentially be caused by a"
|
||||
" downgrade attack from a malicious server or a bug in pmbootstrap. You can try"
|
||||
" switching servers, see https://docs.postmarketos.org/pmbootstrap/mirrors.html"
|
||||
)
|
||||
|
||||
# Move it to the right path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue