Commit 2ee288ec0dd6bd6225816061e2c92060ffc3a999

Thomas de Grivel 2023-02-17T18:25:12

verbose status change

diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index 56b7ee1..f35c7f9 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -826,14 +826,16 @@ shpkg_ci_status () {
         SHPKG_CI_STATUS=unknown
     fi
     if [ "x$2" = "xrunning" ]; then
+        verbose -n 2 "Status change: $1: ${SHPKG_CI_STATUS} -> $2"
         verbose -n 1 "echo $2 > ${SHPKG_CI_STATUS_DIR}/$1"
         echo "$2" > "${SHPKG_CI_STATUS_DIR}/$1"
         trap "shpkg_ci_status_trap $1" EXIT
     elif [ "x${SHPKG_CI_STATUS}" = "xrunning" ]; then
+        verbose -n 2 "Status change: $1: ${SHPKG_CI_STATUS} -> $2"
         verbose -n 1 "echo $2 > ${SHPKG_CI_STATUS_DIR}/$1"
         echo "$2" > "${SHPKG_CI_STATUS_DIR}/$1"
     else
-        verbose -n 2 "Status change blocked: ${SHPKG_CI_STATUS} -> $2"
+        verbose -n 2 "Status change blocked: $1: ${SHPKG_CI_STATUS} -> $2"
     fi
 }