1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: use normal messages for sources

This commit is contained in:
Dylan Araps 2020-09-14 16:13:15 +03:00
parent 6c7033ad19
commit 07d30c219b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

10
kiss
View File

@ -207,13 +207,13 @@ pkg_sources() {
continue continue
elif [ -z "${src##git+*}" ]; then elif [ -z "${src##git+*}" ]; then
log "$1" "Found git source '${src##git+}'" printf 'found git %s\n' "${src##git+}"
elif [ -f "${src##*/}" ]; then elif [ -f "${src##*/}" ]; then
log "$1" "Found cached source '${src##*/}'" printf 'found cached %s\n' "${src##*/}"
elif [ -z "${src##*://*}" ]; then elif [ -z "${src##*://*}" ]; then
log "$1" "Downloading $src" printf 'downloading %s\n' "$src"
curl "$src" -fLo "${src##*/}" || { curl "$src" -fLo "${src##*/}" || {
rm -f "${src##*/}" rm -f "${src##*/}"
@ -221,10 +221,10 @@ pkg_sources() {
} }
elif [ -e "$repo_dir/$src" ]; then elif [ -e "$repo_dir/$src" ]; then
log "$1" "Found local relative source '$src'" printf 'found relative %s\n' "$src"
elif [ -e "/$src" ]; then elif [ -e "/$src" ]; then
log "$1" "Found local absolute source '$src'" printf 'found absolute %s\n' "$src"
else else
die "$1" "No local file '$src'" die "$1" "No local file '$src'"