zap: cache_clean: get apk.static if missing (MR 2481)

After extending CI to always run "pmbootstrap zap -a" it revealed
another bug: we did not ensure at this point that apk.static is
available. Rung apk_static.init() to ensure it gets downloaded and
extracted at this point if it is missing.
This commit is contained in:
Oliver Smith 2024-11-07 19:04:36 +01:00
parent 7a5c04f660
commit cfa455cc5e
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -273,6 +273,7 @@ def cache_clean(arch: Arch) -> None:
command += ["cache", "clean"]
_command = _prepare_cmd(command, None)
pmb.helpers.apk_static.init()
pmb.helpers.run.root(_command)