aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-28 16:27:34 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-07-28 16:27:34 +0000
commitc79ab11b5ffab8faafa095494e593bf89699686a (patch)
tree0e6439ef3c1ae708dad5516c2551a0282337dd4b
parent3c590dc75f1ef76d0a4e5b46c33833fa28a0b8ca (diff)
downloadcpt-c79ab11b5ffab8faafa095494e593bf89699686a.tar.gz
kiss: Fix remote sources which aren't tarballs.
FossilOrigin-Name: 411914c507ee775e0b274739cc143028d434540bf1d6473abb4d2921ed444471
-rwxr-xr-xkiss11
1 files 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"