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]>