cpt

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

commit 69471ec52b555cc66ea25c5ced7d22d8921befb8
parent f4766b3cc40bbd40a9d418426c06424ef5108ad8
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun, 28 Jul 2019 19:27:35 +0300

kiss: Fix remote sources which aren't tarballs.

Diffstat:
Mkiss | 11++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/kiss b/kiss @@ -204,10 +204,15 @@ pkg_extract() { # Local files (Any source that is non-remote is assumed to be local). *) - [ -f "$repo_dir/$src" ] || - die "[$1]: Local file $src not found." + if [ -f "$repo_dir/$src" ]; then + cp -f "$repo_dir/$src" "./$dest" + + elif [ -f "$src_dir/$1/${src##*/}" ]; then + cp -f "$src_dir/$1/${src##*/}" "./$dest" - cp -f "$repo_dir/$src" "./$dest" + else + die "[$1]: Local file $src not found." + fi ;; esac done < "$repo_dir/sources"