From c79ab11b5ffab8faafa095494e593bf89699686a Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Sun, 28 Jul 2019 16:27:34 +0000 Subject: kiss: Fix remote sources which aren't tarballs. FossilOrigin-Name: 411914c507ee775e0b274739cc143028d434540bf1d6473abb4d2921ed444471 --- kiss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index c5e38e9..11acaa8 100755 --- 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" -- cgit v1.2.3