forked from kiss-community/kiss
kiss: don't print misleading message as hooks can update repositories
This commit is contained in:
parent
b8a1b23644
commit
054761905e
7
kiss
7
kiss
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user