mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 11:29:46 +03:00
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
|
@ -109,7 +109,7 @@ class RepoBootstrap(commands.Command):
|
|||
|
||||
self.log_progress(f"initializing {chroot} chroot (merge /usr: {usr_merge.name})")
|
||||
# Initialize without pmOS binary package repo
|
||||
pmb.chroot.apk.update_repository_list(chroot, mirrors_exclude=[self.repo])
|
||||
pmb.helpers.apk.update_repository_list(chroot.path, mirrors_exclude=[self.repo])
|
||||
pmb.chroot.init(chroot, usr_merge)
|
||||
|
||||
bootstrap_stage = int(step.split("bootstrap_", 1)[1])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue