diff options
author | Hannu Nyman <hannu.nyman@iki.fi> | 2024-11-03 16:19:15 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2024-11-03 22:06:22 +0200 |
commit | d90728d2c05da46fe5c2a1a1100a93f9a55730d7 (patch) | |
tree | 969fa19f56e8eb593ab6ad19794ceebc6f6e22f3 /applications/luci-app-package-manager/htdocs/luci-static/resources/view | |
parent | 5c27cf3671d298290a0e6a27936250e971eeb650 (diff) |
luci-app-package-manager: Show the executed command
Clarify the output of the LuCI package manager actions:
show also the exact command passed to apk & opkg
(in addition to output & errors from the command)
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
Diffstat (limited to 'applications/luci-app-package-manager/htdocs/luci-static/resources/view')
-rw-r--r-- | applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js index bc246f9e29..380ee76d82 100644 --- a/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js +++ b/applications/luci-app-package-manager/htdocs/luci-static/resources/view/package-manager.js @@ -1021,6 +1021,9 @@ function handlePkg(ev) fs.exec_direct('/usr/libexec/package-manager-call', argv, 'json').then(function(res) { dlg.removeChild(dlg.lastChild); + if (res.pkmcmd) + dlg.appendChild(E('pre', [ res.pkmcmd ])); + if (res.stdout) dlg.appendChild(E('pre', [ res.stdout ])); |