From de248330383034a7cde6b634e0c7743acbab2eb5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 20 Jul 2021 18:08:02 +0300 Subject: [PATCH] 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. --- kiss | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kiss b/kiss index ebd13f8..2a9a41d 100755 --- a/kiss +++ b/kiss @@ -521,10 +521,6 @@ pkg_extract() { pkg_source_tar "$_res" ;; - *.zip) - unzip "$_res" - ;; - *?*) cp -Rf "$_res" . ;; @@ -1013,7 +1009,7 @@ pkg_checksums() { while read -r src dest || ok "$src"; do pkg_source_resolve "$repo_name" "$src" "$dest" >/dev/null - case $_res in git+*) ;; */*[!.]) + case $_res in [!g][!i][!t][!+]*/*[!.]) set -- "$@" "$_res" esac done < "$repo_dir/sources"