diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-09-15 00:52:16 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-09-15 00:52:16 -0400 |
| commit | 8f5089895200ade16e04986b71feb8c3bcb75ef4 (patch) | |
| tree | 3bb6c55cebe1e3233f1955c41320d9cef031c077 /sbolint | |
| parent | 95e2678c6f947d185c25bcbe1ac3aa26eb670b16 (diff) | |
| download | sbo-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-x | sbolint | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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}); } |
