pmbootstrap-meow/test
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
..
pmb_test Happy new year 2022! 2022-01-02 22:39:14 +01:00
testdata pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
pytest.ini CI: drop support for cached venv + ci runner (MR 2080) 2021-07-04 22:51:53 +02:00
static_code_analysis.sh Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_apk.py pmb.chroot.apk.install_{is_necessary -> build} (MR 2185) 2022-05-30 19:09:00 +02:00
test_apk_static.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_aportgen.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_aportgen_device_wizard.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_arguments.py pmb.parse.arguments: add zap --all flag (MR 2117) 2022-02-28 17:09:21 +03:00
test_bootimg.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_build_is_necessary.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_build_package.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_chroot_interactive_shell.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_config_init.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_config_pmaports.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_config_user.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_config_workdir.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_cross_compile_distcc.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_crossdirect.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_envkernel.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_file.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_folder_size.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_frontend.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_git.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_lint.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_package.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_pmaports.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_repo.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_repo_missing.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_status.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_helpers_ui.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_install.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_kconfig_check.py pmb.parse.kconfig: implement UEFI kconfig check (MR 2169) 2022-03-16 09:25:00 +01:00
test_keys.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_mount.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_newapkbuild.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_parse_apkbuild.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_parse_apkindex.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_parse_depends.py pmb.parse.depends: ignore conflict dependency that no longer exists (MR 2181) 2022-05-12 22:26:53 -07:00
test_parse_deviceinfo.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_pkgrel_bump.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_qemu_running_processes.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_questions.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_run_core.py Print return code when subprocess fails (MR 2161) 2022-01-22 15:45:12 +01:00
test_shell_escape.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_version.py Happy new year 2022! 2022-01-02 22:39:14 +01:00
test_version_validate.py Happy new year 2022! 2022-01-02 22:39:14 +01:00