1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

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). # Local files (Any source that is non-remote is assumed to be local).
*) *)
[ -f "$repo_dir/$src" ] || if [ -f "$repo_dir/$src" ]; then
die "[$1]: Local file $src not found." 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 esac
done < "$repo_dir/sources" done < "$repo_dir/sources"