Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2023-01-13 16:23:49 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-01-19 16:08:27 +0300
commit96fdd81dca85221cc5b3b63e36f1f0fc3566bfc6 (patch)
tree85c2b80602e35683068d466c86aeb2a0aadc0f3e
parent99e4a07a5b8747bf7abf45367d9a3ea0c9aed97e (diff)
Check for forbidden hyphen-digit sequence in package name
-rwxr-xr-xcalm/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py
index d450ea9..c8f079a 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -362,6 +362,10 @@ def read_one_package(packages, p, relpath, dirpath, files, kind, strict):
logging.error("package '%s' name contains illegal characters" % p)
return True
+ if re.search(r'-\d', p):
+ logging.error("package '%s' name contains hyphen followed a digit" % p)
+ return True
+
# assumption: no real package names end with '-src'
#
# enforce this, because source and install package names exist in a