diff options
-rwxr-xr-x | calm/package.py | 4 |
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 |