mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 08:30:05 -07:00
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.
|
# Support packages without sources. Simply do nothing.
|
||||||
[ -f "$repo_dir/sources" ] || return 0
|
[ -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
|
# Store each downloaded source in a directory named after the package it
|
||||||
# belongs to. This avoid conflicts between two packages having a source
|
# 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"
|
mkdir -p "$src_dir/$1" && cd "$src_dir/$1"
|
||||||
|
|
||||||
while read -r src dest || [ "$src" ]; do
|
while read -r src dest || [ "$src" ]; do
|
||||||
if [ -z "${src##\#*}" ] || [ -z "${src##git+*}" ]; then
|
if [ -z "${src##\#*}" ]; then
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
elif [ -z "${src##git+*}" ]; then
|
||||||
|
log "$1" "Found git source '${src##git+}'"
|
||||||
|
|
||||||
elif [ -f "${src##*/}" ]; then
|
elif [ -f "${src##*/}" ]; then
|
||||||
log "$1" "Found cached source '${src##*/}'"
|
log "$1" "Found cached source '${src##*/}'"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user