kiss: fix pkg_lint
- unsquish - use variable with pkg_find so die works.
This commit is contained in:
parent
6ef40ad38d
commit
3d11a77cd0
18
kiss
18
kiss
|
@ -138,12 +138,20 @@ sh256() {
|
||||||
pkg_lint() {
|
pkg_lint() {
|
||||||
log "$1" "Checking repository files"
|
log "$1" "Checking repository files"
|
||||||
|
|
||||||
cd "$(pkg_find "$1")"
|
_r=$(pkg_find "$1")
|
||||||
read -r _ release 2>/dev/null < version || die "Version file not found"
|
cd "$_r"
|
||||||
|
|
||||||
[ "$release" ] || die "$1" "Release field not found in version file"
|
read -r _ release 2>/dev/null < version ||
|
||||||
[ -x build ] || die "$1" "Build file not found or not executable"
|
die "Version file not found"
|
||||||
[ -f sources ] || war "$1" "Sources file not found"
|
|
||||||
|
[ "$release" ] ||
|
||||||
|
die "$1" "Release field not found in version file"
|
||||||
|
|
||||||
|
[ -x build ] ||
|
||||||
|
die "$1" "Build file not found or not executable"
|
||||||
|
|
||||||
|
[ -f sources ] ||
|
||||||
|
war "$1" "Sources file not found"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_find() {
|
pkg_find() {
|
||||||
|
|
Loading…
Reference in New Issue