Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-app-opkg: fix passing wrong option on opkg update/install #7340

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down