diff options
author | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-03-18 09:56:28 +0100 |
---|---|---|
committer | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2023-03-18 09:56:28 +0100 |
commit | 670f66a5e1804519e1e1b4554915b7c7da6b72b0 (patch) | |
tree | 0deb4096f8651a67681d3ee8a0b487cccf69a3ad /dist | |
parent | 6382f7e4509eae5fc1e86aedef5fde7fbb733ca8 (diff) | |
download | midipix_build-670f66a5e1804519e1e1b4554915b7c7da6b72b0.tar.bz2 midipix_build-670f66a5e1804519e1e1b4554915b7c7da6b72b0.tar.xz |
Safely send dispatcher messages.
Diffstat (limited to 'dist')
-rw-r--r-- | dist/dist_gitref.dist | 2 | ||||
-rw-r--r-- | dist/dist_minipix.dist | 2 | ||||
-rw-r--r-- | dist/dist_zipdist.dist | 10 |
3 files changed, 7 insertions, 7 deletions
diff --git a/dist/dist_gitref.dist b/dist/dist_gitref.dist index 5a671dc1..e1f2152c 100644 --- a/dist/dist_gitref.dist +++ b/dist/dist_gitref.dist @@ -9,7 +9,7 @@ pkg_dist_gitref_all() { (rtl_fileop cd "${MIDIPIX_BUILD_PWD}" &&\ git rev-parse HEAD > "${PREFIX}/build.gitref"); if [ "${?}" -eq 0 ]; then - printf "step ${_pdga_group_name} ${_pdga_pkg_name} finish\n" >&3; + ex_pkg_dispatch_send "step" "${_pdga_group_name}" "${_pdga_pkg_name}" "finish"; ex_pkg_state_set "${_pdga_pkg_name}" "finish"; return 0; else diff --git a/dist/dist_minipix.dist b/dist/dist_minipix.dist index 8f6d2024..843e1b4f 100644 --- a/dist/dist_minipix.dist +++ b/dist/dist_minipix.dist @@ -94,7 +94,7 @@ pkg_dist_minipix_all() { return 1; fi; - printf "step ${_pdma_group_name} ${_pdma_pkg_name} finish\n" >&3; + ex_pkg_dispatch_msg "step" "${_pdma_group_name}" "${_pdma_pkg_name}" "finish"; ex_pkg_state_set "${_pdma_pkg_name}" "finish"; return 0; diff --git a/dist/dist_zipdist.dist b/dist/dist_zipdist.dist index 3eb249aa..505fcac6 100644 --- a/dist/dist_zipdist.dist +++ b/dist/dist_zipdist.dist @@ -11,7 +11,7 @@ pkg_dist_zipdist_all() { return 0; fi; - echo "msg_pkg dist dist_zipdist ${MSG_zipdist_begin}" >&3; + ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_begin}"; rtl_log_msg "zipdist" "${MSG_zipdist_begin}"; for _pdza_pkg_name in $(cat "${_pdza_pkglist_fname}"); do @@ -43,14 +43,14 @@ pkg_dist_zipdist_all() { return 1; fi; - echo "msg_pkg dist dist_zipdist ${MSG_zipdist_finished}" >&3; + ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_finished}"; rtl_log_msg "zipdist" "${MSG_zipdist_finished}"; if [ "${DEFAULT_ZIPDIST_SIGN_GPG_KEY:+}" = 1 ]\ && command which gpg >/dev/null 2>&1\ && gpg --list-keys "${DEFAULT_ZIPDIST_SIGN_GPG_KEY}" >/dev/null 2>&1; then - echo "msg_pkg dist dist_zipdist ${MSG_zipdist_signing}" >&3; + ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_signing}"; rtl_log_msg "zipdist" "${MSG_zipdist_signing}"; if ! gpg --armor --passphrase-file /dev/null \ @@ -59,11 +59,11 @@ pkg_dist_zipdist_all() { return 1; fi; - echo "msg_pkg dist dist_zipdist ${MSG_zipdist_signed}" >&3; + ex_pkg_dispatch_send "msg_pkg" "dist" "dist_zipdist" "${MSG_zipdist_signed}"; rtl_log_msg "zipdist" "${MSG_zipdist_signed}"; fi; - printf "step ${_pdza_group_name} ${_pdza_pkg_name} finish\n" >&3; + ex_pkg_dispatch_send "step" "${_pdza_group_name}" "${_pdza_pkg_name}" "finish"; ex_pkg_state_set "${_pdza_pkg_name}" "finish"; return 0; |