diff options
author | B. Watson <urchlay@slackware.uk> | 2023-09-24 04:53:28 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-09-24 04:53:28 -0400 |
commit | 44d81729f4ab57d8e804cca8ba3f501826a4124a (patch) | |
tree | ebe83dc442158c068b02d50826e9b8bde13cb06a | |
parent | 73dd883666657578431caf5013aeaa25bb6462d6 (diff) | |
download | sbo-maintainer-tools-44d81729f4ab57d8e804cca8ba3f501826a4124a.tar.gz |
sbopkglint: check for invalid chars in pkg name.
-rw-r--r-- | sbopkglint.d/05-basic-sanity.t.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbopkglint.d/05-basic-sanity.t.sh b/sbopkglint.d/05-basic-sanity.t.sh index d172cf9..d799ab9 100644 --- a/sbopkglint.d/05-basic-sanity.t.sh +++ b/sbopkglint.d/05-basic-sanity.t.sh @@ -89,6 +89,10 @@ warn_badperms() { warn "bad permissions/owner (should be 0755 root:root): $1" } +if LANG=C echo "$PRGNAM" | grep -q [^-._+A-Za-z0-9]; then + warn "package name has invalid characters, only A-Z, a-z, 0-9, - + . _ are allowed"; +fi + for i in *; do if [ ! -d "$i" ]; then warn "package root dir contains non-directory: $i" |