forked from kiss-community/kiss
kiss: simplify pkg_lint
This commit is contained in:
parent
62e0c14f01
commit
fe6c391b10
7
kiss
7
kiss
@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user