summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
Diffstat (limited to 'subr')
-rw-r--r--subr/ex_pkg_dispatch.subr3
-rw-r--r--subr/ex_setup_args.subr6
2 files changed, 5 insertions, 4 deletions
diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr
index a58818ba..f099dd6a 100644
--- a/subr/ex_pkg_dispatch.subr
+++ b/subr/ex_pkg_dispatch.subr
@@ -24,6 +24,9 @@ ex_pkg_dispatch() {
else \
echo \"fail ${PKG_NAME}\" >&3; \
fi;" EXIT HUP INT TERM USR1 USR2;
+ if [ "${ARG_XTRACE:-0}" -eq 1 ]; then
+ set -o xtrace;
+ fi;
ex_pkg_vars;
if [ "${PKG_DISABLED:-0}" -eq 1 ]; then
ex_log_msg vnfo "Skipping disabled package \`${PKG_NAME}.'";
diff --git a/subr/ex_setup_args.subr b/subr/ex_setup_args.subr
index fed20d69..2f00c6dc 100644
--- a/subr/ex_setup_args.subr
+++ b/subr/ex_setup_args.subr
@@ -50,10 +50,8 @@ ex_setup_args() {
TARBALL_SUFFIX=xz;
fi;
fi;
- if [ "${ARG_XTRACE:-0}" -eq 1 ]; then
- set -o xtrace;
- fi;
- if [ "${ARG_VERBOSE3:-0}" -eq 1 ]; then
+ if [ "${ARG_VERBOSE3:-0}" -eq 1 ]\
+ || [ "${ARG_XTRACE:-0}" -eq 1 ]; then
ARG_VERBOSE2=1;
fi;
if [ "${ARG_VERBOSE2:-0}" -eq 1 ]; then