diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-28 16:27:34 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-07-28 16:27:34 +0000 |
commit | c79ab11b5ffab8faafa095494e593bf89699686a (patch) | |
tree | 0e6439ef3c1ae708dad5516c2551a0282337dd4b | |
parent | 3c590dc75f1ef76d0a4e5b46c33833fa28a0b8ca (diff) | |
download | cpt-c79ab11b5ffab8faafa095494e593bf89699686a.tar.gz |
kiss: Fix remote sources which aren't tarballs.
FossilOrigin-Name: 411914c507ee775e0b274739cc143028d434540bf1d6473abb4d2921ed444471
-rwxr-xr-x | kiss | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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" |