1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 22:15:36 -07:00

kiss: don't print misleading message as hooks can update repositories

This commit is contained in:
Dylan Araps 2021-07-24 22:27:43 +03:00
parent b8a1b23644
commit 054761905e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

7
kiss
View File

@ -1565,9 +1565,6 @@ pkg_update() {
pkg_update_repo() {
cd "$repo" || die "Repository '$repo' inaccessible"
# NULL function for unsupported repository types.
pkg_update_null() { printf 'Repository has no remote\n'; }
contains "$repos" "$PWD" || {
repos="$repos $PWD"
@ -1583,7 +1580,9 @@ pkg_update_repo() {
# env: PWD is path to repository
run_hook pre-update "$#"
"pkg_update_$repo_type" "$@"
case $repo_type in git)
pkg_update_git "$@"
esac
# arg1: post-update
# env: PWD is path to repository