luci-app-opkg: fix passing wrong option on opkg update/install
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 22 Oct 2024 22:21:35 +0000 (00:21 +0200)
committerPaul Donald <newtwen+github@gmail.com>
Fri, 25 Oct 2024 20:59:05 +0000 (22:59 +0200)
commitb93fdef9692166396c880a3a8cecde603b932544
tree0b00828115330684d89e8614fe130b7379faeced
parent25bcf8152cefa1b2dbf7a76ebc37761d32e0a5fb
luci-app-opkg: fix passing wrong option on opkg update/install

Fix passing wrong option on opkg update/install. While starting to
introduce support for APK in the opkg module, it was notice that
--force-removal-of-dependent-packages was always passed even with update
and install command.

This was probably a leftover/oversight of old one. To fix this, limit
this option only on remove and also update the acl.d to support single
call to update or install.

Fixes: 9b25031cb29b ("luci-app-opkg: rework backend operations")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 3a8e9baf32242f30cf65791b61c460413bd115ce)
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js
applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json