pmbootstrap-meow/pmb
Oliver Smith e91dbefd16
pmb.chroot.apk.install_{is_necessary -> build} (MR 2185)
install_is_necessary used to do the following things:

1. Error out if there's no binary package but pmb was invoked as
   "pmbootstrap install" and build_pkgs_on_install is disabled.
2. Build the package if necessary.
3. Return if a package "needs to be installed" (Boolean or Float).

The only caller of the function is pmb.chroot.apk.install. It would not
add the package to the long "apk add" command if according to 3. it does
not need to be installed.

When I implemented this a few years ago, I probably thought it would be
useful to not unnecessarily pass packages to apk. But this actually
makes it more complicated and doesn't have a benefit, apk is perfectly
capable of recognizing which packages it had already installed.

Replace the function with a much simpler pmb.chroot.apk.install_build,
which only does 1. and 2. Change the order of the package, arch
arguments to match called functions pmb.parse.apkindex.package and
pmb.build.package.
2022-05-30 19:09:00 +02:00
..
aportgen Happy new year 2022! 2022-01-02 22:39:14 +01:00
build pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
chroot pmb.chroot.apk.install_{is_necessary -> build} (MR 2185) 2022-05-30 19:09:00 +02:00
config Prepare 1.44.1 release 2022-05-24 20:16:07 +02:00
data pmb: data: keys: sync with Alpine (MR 2131) 2021-10-19 01:44:35 +02:00
export Happy new year 2022! 2022-01-02 22:39:14 +01:00
flasher pmb: flasher: add support for rk partitions (MR 2165) 2022-02-13 19:54:29 +01:00
helpers pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
install pmb.install: Check for alpine-conf version (MR 2182) 2022-05-15 16:51:53 +02:00
netboot pmb/netboot: new feature (MR 2064) 2022-01-20 22:29:41 +01:00
parse pmb.parse.depends: ignore conflict dependency that no longer exists (MR 2181) 2022-05-12 22:26:53 -07:00
qemu pmb.qemu.run: add option to set serial to mon:stdio (MR 1980) 2022-02-13 19:22:49 +01:00
sideload Happy new year 2022! 2022-01-02 22:39:14 +01:00
__init__.py Happy new year 2022! 2022-01-02 22:39:14 +01:00