kiss: minor changes

- Drop zip support. Repositories don't use it for anything, it has
  no standard interface, the code is rather naive (does not strip
  any parent directory so build files must cd (dir may change...).

  Also.. the current zip code will prompt the user if there are
  any conflicts which is contrary to expected behavior (later
  sources overwrite prior files by design).

- Use one pattern in checksum generation.
This commit is contained in:
Dylan Araps 2021-07-20 18:08:02 +03:00
parent c4d3ba4390
commit de24833038
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -521,10 +521,6 @@ pkg_extract() {
pkg_source_tar "$_res" pkg_source_tar "$_res"
;; ;;
*.zip)
unzip "$_res"
;;
*?*) *?*)
cp -Rf "$_res" . cp -Rf "$_res" .
;; ;;
@ -1013,7 +1009,7 @@ pkg_checksums() {
while read -r src dest || ok "$src"; do while read -r src dest || ok "$src"; do
pkg_source_resolve "$repo_name" "$src" "$dest" >/dev/null pkg_source_resolve "$repo_name" "$src" "$dest" >/dev/null
case $_res in git+*) ;; */*[!.]) case $_res in [!g][!i][!t][!+]*/*[!.])
set -- "$@" "$_res" set -- "$@" "$_res"
esac esac
done < "$repo_dir/sources" done < "$repo_dir/sources"