kiss: Fix remote sources which aren't tarballs.

This commit is contained in:
Dylan Araps 2019-07-28 19:27:35 +03:00
parent f4766b3cc4
commit 69471ec52b

11
kiss
View File

@ -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"
cp -f "$repo_dir/$src" "./$dest"
elif [ -f "$src_dir/$1/${src##*/}" ]; then
cp -f "$src_dir/$1/${src##*/}" "./$dest"
else
die "[$1]: Local file $src not found."
fi
;;
esac
done < "$repo_dir/sources"