kiss: add pre/post-update hooks. See #234
This commit is contained in:
parent
4ebbfc094f
commit
cd242f6d23
4
kiss
4
kiss
|
@ -1509,6 +1509,8 @@ pkg_update() {
|
||||||
contains "$repos" "$PWD" || {
|
contains "$repos" "$PWD" || {
|
||||||
repos="$repos $PWD "
|
repos="$repos $PWD "
|
||||||
|
|
||||||
|
run_hook pre-update "$PWD"
|
||||||
|
|
||||||
# Display a tick if signing is enabled for this repository.
|
# Display a tick if signing is enabled for this repository.
|
||||||
case $(git config merge.verifySignatures) in
|
case $(git config merge.verifySignatures) in
|
||||||
true) log "$PWD" "[signed] " ;;
|
true) log "$PWD" "[signed] " ;;
|
||||||
|
@ -1537,6 +1539,8 @@ pkg_update() {
|
||||||
as_root git pull
|
as_root git pull
|
||||||
as_root git submodule update --remote --init -f
|
as_root git submodule update --remote --init -f
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
run_hook post-update "$PWD"
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue