forked from Mirror/pmbootstrap
It turns out that apk with the --root argument will still treat local repositories relative to the host. This makes sense considering the intended usecase, however as a result the recent change to use apk.static for all apk commands inside the target root will break the use of local packages. To fix this, adjust how we populate /etc/apk/repositories, changing the default to no longer include the local user repo. Instead we pass --repository to apk.static with the host path to the repo. The only time we want to add the user repo to /etc/apk/repositories inside the chroot is when the user enters the chroot, so a special case is added to helpers/frontend.py for the chroot command. Signed-off-by: Caleb Connolly <caleb@postmarketos.org> |
||
---|---|---|
.. | ||
__init__.py | ||
apk.py | ||
aportupgrade.py | ||
args.py | ||
cli.py | ||
devices.py | ||
exceptions.py | ||
file.py | ||
frontend.py | ||
git.py | ||
http.py | ||
lint.py | ||
logging.py | ||
mount.py | ||
other.py | ||
package.py | ||
pkgrel_bump.py | ||
pmaports.py | ||
repo.py | ||
repo_missing.py | ||
run.py | ||
run_core.py | ||
status.py | ||
ui.py |