cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 8f88aa56fd37d5ee182e6d32d537b00284ae1869
parent fc8032211c0f344e879af3e75be12c61c215411f
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 14 Feb 2020 18:06:47 +0200

kiss: comment support in sources

Diffstat:
Mkiss | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/kiss b/kiss @@ -173,8 +173,11 @@ pkg_sources() { repo_dir=$(pkg_find "$1") while read -r src dest || [ "$src" ]; do + # Comment. + if [ -z "${src##\#*}" ]; then : + # Remote source (cached). - if [ -f "${src##*/}" ]; then + elif [ -f "${src##*/}" ]; then log "$1" "Found cached source '${src##*/}'" # Remote git repository. @@ -235,10 +238,8 @@ pkg_extract() { die "Commit hash ${src##*#} doesn't exist" ;; - # Git repository. - git+*) - continue - ;; + # Git repository or comment. + git+*|\#*) continue ;; # Only 'tar' archives are currently supported for extraction. # Any other file-types are simply copied to '$mak_dir' which