forked from kiss-community/kiss
kiss-new: Added more checks to the linter.
This commit is contained in:
parent
416f2b097b
commit
2698a51f5e
13
kiss-new
13
kiss-new
@ -43,8 +43,17 @@ pkg_lint() {
|
||||
|
||||
[ -f sources ] || die "Sources file not found."
|
||||
[ -x build ] || die "Build file not found or not executable."
|
||||
[ -f licenses ] || die "License file not found or empty."
|
||||
[ -f version ] || die "Version file not found or empty."
|
||||
[ -s licenses ] || die "License file not found or empty."
|
||||
[ -s version ] || die "Version file not found or empty."
|
||||
|
||||
# Ensure that the release field in the version file is set
|
||||
# to something.
|
||||
read -r _ rel < version
|
||||
[ "$rel" ] || die "Release field not found in version file."
|
||||
|
||||
# Unset this variable so it isn't used again on a failed
|
||||
# source. There's no 'local' keyword in POSIX sh.
|
||||
rel=
|
||||
}
|
||||
|
||||
pkg_search() {
|
||||
|
Loading…
Reference in New Issue
Block a user