Revert "luci-app-opkg: fix passing wrong option on opkg update/install"

This reverts commit 4163e3810a.

Due to cache problem it's better to revert this minor fixup than adding
a fixup on top of it. For OPKG it doesn't cause any problem as the extra
unsupported options is just ignored.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
Christian Marangi
2024-10-28 11:48:48 +01:00
parent 4163e3810a
commit 7a420e0c06
2 changed files with 2 additions and 6 deletions

View File

@@ -983,10 +983,7 @@ function handleOpkg(ev)
_('Waiting for the <em>opkg %h</em> command to complete…').format(cmd))
]);
var argv = [ cmd ];
if (cmd == 'remove')
argv.push('--force-removal-of-dependent-packages')
var argv = [ cmd, '--force-removal-of-dependent-packages' ];
if (rem && rem.checked)
argv.push('--autoremove');

View File

@@ -17,10 +17,9 @@
},
"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" ]