mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-09-28 12:22:39 -06:00
kiss: don't resolve comments/blank lines
This commit is contained in:
parent
4072a621c7
commit
912ba91654
8
kiss
8
kiss
@ -293,6 +293,8 @@ pkg_cache() {
|
|||||||
pkg_source_resolve() {
|
pkg_source_resolve() {
|
||||||
# Given a line of input from the sources file, return an absolute
|
# Given a line of input from the sources file, return an absolute
|
||||||
# path to the source if it already exists, error if not.
|
# path to the source if it already exists, error if not.
|
||||||
|
[ "${2##\#*}" ] || { _res=; return; }
|
||||||
|
|
||||||
fnr "${2%"${2##*[!/]}"}" \
|
fnr "${2%"${2##*[!/]}"}" \
|
||||||
VERSION "$repo_ver" \
|
VERSION "$repo_ver" \
|
||||||
RELEASE "$repo_rel" \
|
RELEASE "$repo_rel" \
|
||||||
@ -304,12 +306,8 @@ pkg_source_resolve() {
|
|||||||
|
|
||||||
set -- "$1" "$_fnr" "${3%"${3##*[!/]}"}" "$4"
|
set -- "$1" "$_fnr" "${3%"${3##*[!/]}"}" "$4"
|
||||||
|
|
||||||
if [ -z "${2##\#*}" ]; then
|
|
||||||
_res=
|
|
||||||
return
|
|
||||||
|
|
||||||
# Git repository.
|
# Git repository.
|
||||||
elif [ -z "${2##git+*}" ]; then
|
if [ -z "${2##git+*}" ]; then
|
||||||
_res=$2
|
_res=$2
|
||||||
|
|
||||||
# Remote source (cached).
|
# Remote source (cached).
|
||||||
|
Loading…
Reference in New Issue
Block a user