aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-09-15 00:52:16 -0400
committerB. Watson <urchlay@slackware.uk>2026-09-15 00:52:16 -0400
commit8f5089895200ade16e04986b71feb8c3bcb75ef4 (patch)
tree3bb6c55cebe1e3233f1955c41320d9cef031c077 /sbolint
parent95e2678c6f947d185c25bcbe1ac3aa26eb670b16 (diff)
downloadsbo-maintainer-tools-8f5089895200ade16e04986b71feb8c3bcb75ef4.tar.gz
sbolint: check for whitespace in .info file VERSION; check for invalid chars in REQUIRES.
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbolint b/sbolint
index db3535c..16b82f2 100755
--- a/sbolint
+++ b/sbolint
@@ -1221,10 +1221,18 @@ sub check_info {
log_error("$file: PRGNAM has invalid characters, only A-Z, a-z, 0-9, - + . _ are allowed");
}
+ if($info{REQUIRES} =~ /[^- +._A-Za-z0-9]/) {
+ log_error("$file: REQUIRES has invalid characters, only space, A-Z, a-z, 0-9, - + . _ are allowed");
+ }
+
if($info{VERSION} =~ /-/) {
log_error("$file: VERSION may not contain - (dash) characters");
}
+ if($info{VERSION} =~ / /) {
+ log_error("$file: VERSION may not contain whitespace");
+ }
+
if(!check_url($info{HOMEPAGE})) {
log_error("$file: HOMEPAGE=\"%s\" doesn't look like a valid URL (http, https, or ftp)", $info{HOMEPAGE});
}