rpc-sys: packagelist: handle ABI versions in apk world properly
authorEric Fahlgren <[email protected]>
Mon, 29 Sep 2025 20:19:44 +0000 (13:19 -0700)
committerEric Fahlgren <[email protected]>
Mon, 29 Sep 2025 20:54:07 +0000 (13:54 -0700)
commitd4fa147470aab6aee4b23ef6327201c6be069ab1
tree12fd364912f9b64d84fb55aa10e40f6a533b3d82
parent1905e096a8b722e67733cd4088026f571b27e521
rpc-sys: packagelist: handle ABI versions in apk world properly

It was originally assumed that all entries in '/etc/apk/world'
would have ABI-versioned package names.  This turns out to be false,
and apk happily adds package names with or without the ABI version
suffix.  This causes the output from 'ubus call rpc-sys packagelist'
to exclude some packages from the user-installed package list,
thus causing them to disappear when doing an ASU build.

Fix it by checking both versioned and unversioned package names.

Link: https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035/744
Fixes: https://github.com/efahl/owut/issues/49
Signed-off-by: Eric Fahlgren <[email protected]>
sys.c