kiss: simplify pkg_lint

This commit is contained in:
Dylan Araps 2021-07-06 20:26:47 +03:00
parent 62e0c14f01
commit fe6c391b10
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

7
kiss
View File

@ -158,18 +158,15 @@ sh256() {
} }
pkg_lint() { pkg_lint() {
log "$1" "Checking repository files"
pkg_find_version "$1" pkg_find_version "$1"
cd "$repo_dir"
[ "$repo_rel" ] || [ "$repo_rel" ] ||
die "$1" "Release field not found in version file" die "$1" "Release field not found in version file"
[ -x build ] || [ -x "$repo_dir/build" ] ||
die "$1" "Build file not found or not executable" die "$1" "Build file not found or not executable"
[ -f sources ] || [ -f "$repo_dir/sources" ] ||
war "$1" "Sources file not found" war "$1" "Sources file not found"
} }