1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-13 11:29:46 +03:00

chroot: apk_static: remove dead run() function (MR 2463)

Since all apk invocations withing pmbootstrap now use apk.static by
default, apk_static.run() isn't called anymore, so let's remove it.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-10-28 00:10:23 +01:00
parent 42158637a7
commit c4a92c37a8
No known key found for this signature in database
GPG key ID: 0583312B195F64B6

View file

@ -177,14 +177,3 @@ def init() -> None:
apk_name = f"apk-tools-static-{version}.apk" apk_name = f"apk-tools-static-{version}.apk"
apk_static = download(apk_name) apk_static = download(apk_name)
extract(version, apk_static) extract(version, apk_static)
def run(parameters, with_progress=True):
# --no-interactive is a parameter to `add`, so it must be appended or apk
# gets confused
if "add" in parameters:
parameters += ["--no-interactive"]
if get_context().offline:
parameters = ["--no-network"] + parameters
pmb.helpers.apk.run(parameters, with_progress=with_progress)