mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 08:00:05 -07:00
kiss: fixes for cache change. Related to #196
This commit is contained in:
parent
5bbe895731
commit
eb2eef852c
12
kiss
12
kiss
@ -333,7 +333,7 @@ pkg_extract() {
|
||||
;;
|
||||
|
||||
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.t?z)
|
||||
decompress "$src_dir/$1/${src##*/}" \
|
||||
decompress "$src_dir/$1/${dest:-.}/${src##*/}" \
|
||||
> "$tmp_dir/.tar"
|
||||
|
||||
tar xf "$tmp_dir/.tar" ||
|
||||
@ -374,7 +374,7 @@ pkg_extract() {
|
||||
;;
|
||||
|
||||
*://*.zip)
|
||||
unzip "$src_dir/$1/${src##*/}" ||
|
||||
unzip "$src_dir/$1/${dest:-.}/${src##*/}" ||
|
||||
die "$1" "failed to extract ${src##*/}"
|
||||
;;
|
||||
|
||||
@ -395,13 +395,9 @@ pkg_extract() {
|
||||
elif [ -f "/$src" ]; then
|
||||
cp -f "/$src" .
|
||||
|
||||
# Remote file + dest.
|
||||
elif [ -f "$src_dir/$1/$dest/${src##*/}" ]; then
|
||||
cp -f "$src_dir/$1/$dest/${src##*/}" .
|
||||
|
||||
# Remote file.
|
||||
elif [ -f "$src_dir/$1/${src##*/}" ]; then
|
||||
cp -f "$src_dir/$1/${src##*/}" .
|
||||
elif [ -f "$src_dir/$1/${dest:-.}/${src##*/}" ]; then
|
||||
cp -f "$src_dir/$1/${dest:-.}/${src##*/}" .
|
||||
|
||||
else
|
||||
die "$1" "file $src not found"
|
||||
|
Loading…
Reference in New Issue
Block a user