forked from kiss-community/kiss
kiss: Add log message for git sources
This commit is contained in:
parent
6e115ed164
commit
7f73259f39
7
kiss
7
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##*/}'"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user