pmbootstrap/pmb/chroot
Oliver Smith fc1ba9ba7b
pmbootstrap install: don't screw up /etc/apk/world (MR 1981)
Do not attempt to upgrade packages in the rootfs chroot when running
"pmbootstrap install".

This was responsible for placing every single package in /etc/apk/world
(which should only hold the packages explicitly installed), because the
upgrade function was literally implemented as getting a list of
installed packages and explicitly running pmb.chroot.apk.install on each
of them. The intention was to rebuild these packages if they were outdated,
I guess I didn't realize that this makes /etc/apk/world unusable when I
introduced this three years ago in 51bdc243 ("Properly rebuild/install
packages when something changed").

Remove pmb.chroot.apk.upgrade altogether, because:
1) pmb.install.install builds and upgrades outdated pmaports
2) pmb.install.install is the only user of pmb.chroot.apk.upgrade
3) 'pmbootstrap init' is warning that the chroots do not get upgraded
   automatically, so let's not go against that expectation. users who
   want an updated rootfs chroot can simply run zap and install again.

Replace it with a call to pmb.helpers.repo.update, because we still need
to update the APKINDEX files before attempting to build/install the
generated list of packages.
2020-10-27 17:56:45 +01:00
..
__init__.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
apk.py pmbootstrap install: don't screw up /etc/apk/world (MR 1981) 2020-10-27 17:56:45 +01:00
apk_static.py pmb.chroot.apk_static.download: fix mirrordir (MR 1966) 2020-08-05 10:04:48 +02:00
binfmt.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
distccd.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
init.py pmb.chroot.init: verify chroot channel (MR 1912) 2020-05-17 08:08:45 +02:00
initfs.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
initfs_hooks.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
mount.py chroot: put built packages into channel subdir (MR 1912) 2020-05-17 08:08:45 +02:00
other.py pmb.parse.bootimg: detect mediatek header (MR 1955) 2020-08-21 18:33:30 +02:00
root.py Disable timeout for installing packages from apk (MR 1925) 2020-04-25 10:52:00 +03:00
shutdown.py pmbootstrap install --ondev: new option (MR 1946) 2020-06-19 09:36:51 +02:00
user.py Cosmetic: use SPDX license header (!1877) 2020-02-24 03:11:10 +03:00
zap.py pmbootstrap install --ondev: new option (MR 1946) 2020-06-19 09:36:51 +02:00