forked from Mirror/pmbootstrap
helpers: apk: move update_repository_list() from chroot.apk (MR 2463)
This function better belongs here, especially as it will be used outside of the context of a chroot() soon. Additionally, it's adjusted to take the rootfs path as its first argument rather than a chroot, since it could operate on any rootfs. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
af1bf53867
commit
12846f3b8e
6 changed files with 62 additions and 57 deletions
|
@ -11,6 +11,7 @@ import pmb.config.workdir
|
|||
import pmb.chroot
|
||||
import pmb.config.pmaports
|
||||
import pmb.config.workdir
|
||||
import pmb.helpers.apk
|
||||
import pmb.helpers.cli
|
||||
import pmb.helpers.pmaports
|
||||
import pmb.helpers.run
|
||||
|
@ -107,7 +108,7 @@ def zap(
|
|||
pmb.config.workdir.clean()
|
||||
|
||||
# Chroots were zapped, so no repo lists exist anymore
|
||||
pmb.chroot.apk.update_repository_list.cache_clear()
|
||||
pmb.helpers.apk.update_repository_list.cache_clear()
|
||||
# Let chroot.init be called again
|
||||
pmb.chroot.init.cache_clear()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue