From fe6c391b10485964f65d9c556047604aae9c35ee Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 6 Jul 2021 20:26:47 +0300 Subject: [PATCH] kiss: simplify pkg_lint --- kiss | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index 2575344..5e19263 100755 --- a/kiss +++ b/kiss @@ -158,18 +158,15 @@ sh256() { } pkg_lint() { - log "$1" "Checking repository files" - pkg_find_version "$1" - cd "$repo_dir" [ "$repo_rel" ] || die "$1" "Release field not found in version file" - [ -x build ] || + [ -x "$repo_dir/build" ] || die "$1" "Build file not found or not executable" - [ -f sources ] || + [ -f "$repo_dir/sources" ] || war "$1" "Sources file not found" }