From d90728d2c05da46fe5c2a1a1100a93f9a55730d7 Mon Sep 17 00:00:00 2001 From: Hannu Nyman Date: Sun, 3 Nov 2024 16:19:15 +0200 Subject: 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 --- .../htdocs/luci-static/resources/view/package-manager.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'applications/luci-app-package-manager/htdocs/luci-static/resources') 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 ])); -- cgit v1.2.3