From 1417ed23e6be3cb0b0c1c4f245319763c0367aba Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Oct 2016 12:27:37 +0200 Subject: [PATCH] Add pbin digest update hook --- hooks/install_post/update-pbin-digest.bash | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hooks/install_post/update-pbin-digest.bash diff --git a/hooks/install_post/update-pbin-digest.bash b/hooks/install_post/update-pbin-digest.bash new file mode 100644 index 0000000..e0228b5 --- /dev/null +++ b/hooks/install_post/update-pbin-digest.bash @@ -0,0 +1,14 @@ +#!/bin/bash + +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%-*} + einfo "Updating ${_mypn} digest in ${_my_pbin_repo}" + + cave digest ${_mypn} ${_my_pbin_repo} +fi +