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:
parent
42158637a7
commit
c4a92c37a8
1 changed files with 0 additions and 11 deletions
|
@ -177,14 +177,3 @@ def init() -> None:
|
|||
apk_name = f"apk-tools-static-{version}.apk"
|
||||
apk_static = download(apk_name)
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue