mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-13 18:25:17 -07:00
parent
36df1ae0e5
commit
15c89f6423
16
kiss
16
kiss
@ -360,14 +360,18 @@ pkg_source_resolve() {
|
||||
_des=$src_dir/$1/${3:+"$3/"}${2##*/}
|
||||
_des=${_des%[@#]*}/
|
||||
|
||||
# Remote source (cached).
|
||||
elif [ -f "$src_dir/$1/${3:+"$3/"}${2##*/}" ]; then
|
||||
_res=$src_dir/$1/${3:+"$3/"}${2##*/}
|
||||
|
||||
# Remote source.
|
||||
elif null "${2##*://*}"; then
|
||||
_res=url+$2
|
||||
_des=$src_dir/$1/${3:+"$3/"}${2##*/}
|
||||
# Remote source (cached).
|
||||
# Only check if we detect a remote source to avoid
|
||||
# masking local paths like 'files/test' as cached
|
||||
# if '$src_dir/$1/test' is present
|
||||
if [ -f "$src_dir/$1/${3:+"$3/"}${2##*/}" ]; then
|
||||
_res=$src_dir/$1/${3:+"$3/"}${2##*/}
|
||||
else
|
||||
_res=url+$2
|
||||
_des=$src_dir/$1/${3:+"$3/"}${2##*/}
|
||||
fi
|
||||
|
||||
# Local relative dir.
|
||||
elif [ -d "$repo_dir/$2" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user