kiss: Add log message for git sources

This commit is contained in:
Dylan Araps 2020-09-12 17:36:10 +03:00
parent 6e115ed164
commit 7f73259f39
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 2 deletions

7
kiss
View File

@ -201,7 +201,7 @@ pkg_sources() {
# Support packages without sources. Simply do nothing.
[ -f "$repo_dir/sources" ] || return 0
log "$1" "Downloading sources"
log "$1" "Fetching sources"
# Store each downloaded source in a directory named after the package it
# belongs to. This avoid conflicts between two packages having a source
@ -209,9 +209,12 @@ pkg_sources() {
mkdir -p "$src_dir/$1" && cd "$src_dir/$1"
while read -r src dest || [ "$src" ]; do
if [ -z "${src##\#*}" ] || [ -z "${src##git+*}" ]; then
if [ -z "${src##\#*}" ]; then
continue
elif [ -z "${src##git+*}" ]; then
log "$1" "Found git source '${src##git+}'"
elif [ -f "${src##*/}" ]; then
log "$1" "Found cached source '${src##*/}'"