mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
3a3a3196aa
'apk query --format json...' outputs the complete provides fields
including the version.
...
"provides": [
"firewall4-any",
"uci-firewall=2025.03.17~b6e51575-r2"
],
...
Versus the previous 'apk info --full'
...
Package: firewall4
Version: 2025.03.17~b6e51575-r2
Depends: kmod-nft-core, kmod-nft-fib, kmod-nft-nat, kmod-nft-offload, libc, nftables-json, ucode, ucode-mod-fs, ucode-mod-ubus, ucode-mod-uci
Provides: firewall4-any, uci-firewall
...
Strip the '=<version>' suffix before gathering the providers chain.
This was causing some incorrent dependecy issues (ie. uci-firewall not
detected as satisfied) in the luci package-manager app.
Fixes: https://github.com/openwrt/luci/issues/8563
Fixes: https://github.com/openwrt/luci/issues/8581
Fixes: https://github.com/openwrt/openwrt/issues/23004
Fixes: https://github.com/openwrt/openwrt/issues/23136
Fixes: 1624418f64 ("package-manager: migrate to apk-tools JSON API")
Signed-off-by: Mario Andrés Pérez <mapb_@outlook.com>