From aeb8f23c91a8848df24e943da7ce3da2d7246cca Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Oct 2016 13:31:25 +0200 Subject: [PATCH] Update pbin digest hook --- hooks/install_post/update-pbin-digest.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hooks/install_post/update-pbin-digest.bash b/hooks/install_post/update-pbin-digest.bash index e0228b5..0d26295 100644 --- a/hooks/install_post/update-pbin-digest.bash +++ b/hooks/install_post/update-pbin-digest.bash @@ -5,8 +5,7 @@ source "${PALUDIS_EBUILD_DIR}/echo_functions.bash" _my_pbin_repo="hasufell-binhost" if [[ ${CAVE_PERFORM_CMDLINE_destination} == ${_my_pbin_repo} ]] ; then - _mypn=${TARGET%%:*} - _mypn=${_mypn%-*} + _mypn=$(cave print-ids --matching "${TARGET}" -f '%c/%p') einfo "Updating ${_mypn} digest in ${_my_pbin_repo}" cave digest ${_mypn} ${_my_pbin_repo}