mirror of
https://github.com/openwrt/luci
synced 2025-01-09 04:28:37 +08:00
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:
parent
b2cc3f0b5d
commit
3ded930e96
@ -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');
|
||||
|
@ -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" ]
|
||||
|
Loading…
Reference in New Issue
Block a user