openwrt/package/base-files/files
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
..
bin base-files: use cidr for config_generate 2025-05-30 22:55:27 +02:00
etc procd: do not overwrite service data by default 2024-12-17 21:54:54 +01:00
lib base-files: handle packages alternatives when apk removes packages 2025-06-23 09:39:12 +02:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: ignore initscript output in sysupgrade 2025-06-22 19:45:02 +01:00
usr base-files: allow platform_check_image to prevent --force 2025-04-21 16:12:42 +01:00