commit 1169995fb6c3fe0c8479cce19dcd182d13464a15
parent 2b685de92f14de57793c044a66ababff7be2c4a3
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sun, 14 Jul 2019 00:25:36 +0300
docs: update
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/kiss b/kiss
@@ -37,6 +37,8 @@ pkg_lint() {
# Check that each mandatory file in the package entry exists.
log "[$1]: Checking repository files..."
+ # Figure out *where* the repository entry for the package
+ # is located.
repo_dir=$(pkg_search "$1")
cd "$repo_dir" || die "'$repo_dir' not accessible"
@@ -46,7 +48,7 @@ pkg_lint() {
[ -s version ] || die "[$1]: Version file not found or empty."
# Ensure that the release field in the version file is set
- # to something.
+ # to something. The above test checks for the version field inclusively.
read -r _ rel < version
[ "$rel" ] || die "Release field not found in version file."