mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 17:04:35 +04:00
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:9b25031cb2("luci-app-opkg: rework backend operations") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit3a8e9baf32)
This commit is contained in:
committed by
Paul Donald
parent
910cf4daac
commit
4163e3810a
@@ -983,7 +983,10 @@ function handleOpkg(ev)
|
||||
_('Waiting for the <em>opkg %h</em> command to complete…').format(cmd))
|
||||
]);
|
||||
|
||||
var argv = [ cmd, '--force-removal-of-dependent-packages' ];
|
||||
var argv = [ cmd ];
|
||||
|
||||
if (cmd == 'remove')
|
||||
argv.push('--force-removal-of-dependent-packages')
|
||||
|
||||
if (rem && rem.checked)
|
||||
argv.push('--autoremove');
|
||||
|
||||
@@ -17,9 +17,10 @@
|
||||
},
|
||||
"write": {
|
||||
"file": {
|
||||
"/usr/libexec/opkg-call install": [ "exec" ],
|
||||
"/usr/libexec/opkg-call install *": [ "exec" ],
|
||||
"/usr/libexec/opkg-call remove *": [ "exec" ],
|
||||
"/usr/libexec/opkg-call update *": [ "exec" ],
|
||||
"/usr/libexec/opkg-call update": [ "exec" ],
|
||||
"/etc/opkg.conf": [ "write" ],
|
||||
"/etc/opkg/*.conf": [ "write" ],
|
||||
"/tmp/upload.ipk": [ "write" ]
|
||||
|
||||
Reference in New Issue
Block a user