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

This reverts commit b93fdef969.

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:45:24 +01:00
parent b2cc3f0b5d
commit 3ded930e96
No known key found for this signature in database
GPG Key ID: AC001D09ADBFEAD7
2 changed files with 2 additions and 6 deletions

View File

@ -984,10 +984,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" ]