1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 07:30:16 -07:00

kiss: don't resolve comments/blank lines

This commit is contained in:
Dylan Araps 2021-07-17 15:01:53 +03:00
parent 4072a621c7
commit 912ba91654
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

8
kiss
View File

@ -293,6 +293,8 @@ pkg_cache() {
pkg_source_resolve() {
# Given a line of input from the sources file, return an absolute
# path to the source if it already exists, error if not.
[ "${2##\#*}" ] || { _res=; return; }
fnr "${2%"${2##*[!/]}"}" \
VERSION "$repo_ver" \
RELEASE "$repo_rel" \
@ -304,12 +306,8 @@ pkg_source_resolve() {
set -- "$1" "$_fnr" "${3%"${3##*[!/]}"}" "$4"
if [ -z "${2##\#*}" ]; then
_res=
return
# Git repository.
elif [ -z "${2##git+*}" ]; then
if [ -z "${2##git+*}" ]; then
_res=$2
# Remote source (cached).