cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit d16923f27de66194528722775444c78c2215a7dc
parent fa43f8ae4fe5ddb86e22c1c15e72693c691296d2
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 28 May 2020 03:14:31 +0300

kiss: run pre/post-pull hooks when fetching repositories

Diffstat:
Mkiss | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/kiss b/kiss @@ -1233,6 +1233,8 @@ pkg_fetch() { *) log "$PWD" " " ;; esac + run_hook pre-pull '' "$PWD" + if [ -w "$PWD" ] && [ "$uid" != 0 ]; then git fetch git merge @@ -1266,6 +1268,8 @@ pkg_fetch() { user=$user as_root sh -c "$git_cmd" ) fi + + run_hook post-pull '' "$PWD" } done }