summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--src/cmd/opkg.sh6
2 files changed, 6 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index a6d3cc0..21a467c 100644
--- a/NEWS
+++ b/NEWS
@@ -8,7 +8,8 @@ Changes in this release:
* "prokit build" now passes an "-a" option, if supported, to opkg to
install host-architecture non-coinstallable dependencies (such as
library development packages) when cross building.
- * "prokit shell" now returns the shell's exit status.
+ * "prokit shell" and "prokit opkg" now pass through relevant exit
+ statuses.
ProteanOS Development Kit version 2.0.1
---------------------------------------
diff --git a/src/cmd/opkg.sh b/src/cmd/opkg.sh
index 7fbfdb3..8444b3b 100644
--- a/src/cmd/opkg.sh
+++ b/src/cmd/opkg.sh
@@ -40,6 +40,7 @@ cmd_opkg_main()
local install_cmd=
local arg=
local new_fname=
+ local es=
if [ ${#} -lt 1 ]; then
print_cmd_usage 'opkg' >&2
@@ -103,14 +104,15 @@ cmd_opkg_main()
return 2
fi
- session_exec opkg "${@}"
+ es=0
+ session_exec opkg "${@}" || es=${?}
_cmd_opkg_fini
session_end
[ "x${dev}" != 'x' ] && block_umount "${root}"
- return 0
+ return ${es}
}
cmd_opkg_register()