openwrt/package/base-files/files/lib
Mario Andrés Pérez 47b6b9de1a
Some checks are pending
Build all core packages / Build all core packages for selected target (push) Waiting to run
base-files: handle packages alternatives when apk removes packages
On commit 3010ab8 ("base-files: add update_alternatives function") was
implemented the function to handle ALTERNATIVES when using APK (OPKG
handle it internally) but in commit bcc6415 ("base-files: add
compatibility for APK and OPKG") was only called when adding a package,
so call it also when removing packages.

While we are here, check for a more specific *.alternatives files instead
of *.list, and remove redundant "filelist" variable definition.

Fixes: bcc6415 ("base-files: add compatibility for APK and OPKG")
Fixes: https://github.com/openwrt/openwrt/issues/19090
Fixes: https://github.com/openwrt/openwrt/issues/16991
Reported-and-tested-by: Eric Fahlgren <ericfahlgren@gmail.com>
Signed-off-by: Mario Andrés Pérez <mapb_@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/19093
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-23 09:39:12 +02:00
..
functions base-files: fix offset conversion on caldata_patch_data() 2025-02-13 00:26:23 +01:00
preinit base-files: add ucidef_set_network_device_path_port function 2024-10-19 19:10:56 +02:00
upgrade base-files: add dtb support to emmc_upgrade_tar() 2025-06-22 22:17:20 +02:00
functions.sh base-files: handle packages alternatives when apk removes packages 2025-06-23 09:39:12 +02:00