From 7f73259f39289636617331feb0cf63250dc7a57b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 12 Sep 2020 17:36:10 +0300 Subject: [PATCH] kiss: Add log message for git sources --- kiss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 6fe63bb..c671b9b 100755 --- a/kiss +++ b/kiss @@ -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##*/}'"