kiss: sources comment support

This commit is contained in:
Dylan Araps 2020-02-18 21:31:53 +02:00
parent 83a1f8ca17
commit 1b4196c4e1
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 1 deletions

6
kiss
View File

@ -660,8 +660,12 @@ pkg_checksums() {
repo_dir=$(pkg_find "$1")
while read -r src _ || [ "$src" ]; do
# Comment.
if [ -z "${src##\#*}" ]; then
continue
# File is local to the package.
if [ -f "$repo_dir/$src" ]; then
elif [ -f "$repo_dir/$src" ]; then
src_path=$repo_dir/${src%/*}
# File is remote and was downloaded.