efahl / owut

OpenWrt Upgrade Tool
13 stars 0 forks source link

Use package manager agnostic API #4

Closed efahl closed 3 weeks ago

efahl commented 1 month ago

https://github.com/openwrt/packages/pull/24324#issuecomment-2148595500 item 2

Please use ubus call rpc-sys packagelist to get the list of installed packages. Parsing the opkg list on disk is not so cool, also because we are going to switch from opkg to APK very soon and it would be nice to keep the updater agnostic.

efahl commented 1 month ago

Should be addressed by https://github.com/efahl/owut/commit/0c7b579de421f43c591cf36d661756026c71b6e0

The rework resulted in only a single regression: the Default package analysis can no longer distinguish between a removed default package and one that has been replaced by a variant (my test examples for the latter are dnsmasq-full replacing default dnsmasq and nftables-json providing nftables). This previously was determined by the what-provides functionality; it's no big deal, but it was a nice little feature.

efahl commented 3 weeks ago

Regression now being tracked in https://github.com/efahl/owut/issues/10