mirror of
https://git.openwrt.org/project/luci.git
synced 2025-12-20 08:49:59 +08:00
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:
@@ -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');
|
||||
|
||||
@@ -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" ]
|
||||
|
||||
Reference in New Issue
Block a user