forked from kiss-community/kiss
kiss: minor cleanups
This commit is contained in:
parent
1a38d4f64f
commit
ddf11917f3
10
kiss
10
kiss
@ -109,8 +109,8 @@ decompress() {
|
|||||||
|
|
||||||
sh256() {
|
sh256() {
|
||||||
# There's no standard utility to generate sha256 checksums.
|
# There's no standard utility to generate sha256 checksums.
|
||||||
# This is a simple wrapper around sha256sum, sha256, shasum
|
# This is a simple wrapper around sha256sum, sha256, shasum,
|
||||||
# and openssl which will use whatever is available.
|
# openssl, digest, ... which will use whatever is available.
|
||||||
#
|
#
|
||||||
# All utilities must match 'sha256sum' output.
|
# All utilities must match 'sha256sum' output.
|
||||||
#
|
#
|
||||||
@ -270,7 +270,7 @@ pkg_sources() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Local source.
|
# Local source.
|
||||||
elif [ -f "$(pkg_find "$1")/$src" ]; then
|
elif [ -f "$repo_dir/$src" ]; then
|
||||||
log "$1" "Found local file '$src'"
|
log "$1" "Found local file '$src'"
|
||||||
|
|
||||||
else
|
else
|
||||||
@ -366,8 +366,8 @@ pkg_extract() {
|
|||||||
|
|
||||||
*)
|
*)
|
||||||
# Local file.
|
# Local file.
|
||||||
if [ -f "$(pkg_find "$1")/$src" ]; then
|
if [ -f "$repo_dir/$src" ]; then
|
||||||
cp -f "$(pkg_find "$1")/$src" .
|
cp -f "$repo_dir/$src" .
|
||||||
|
|
||||||
# Remote file.
|
# Remote file.
|
||||||
elif [ -f "$src_dir/$1/${src##*/}" ]; then
|
elif [ -f "$src_dir/$1/${src##*/}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user