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>2024-01-18 23:50:18 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2024-01-19 00:26:43 +0300
commit9aa9586fc4153ca1a6e027bf9f342fd35a52e0b9 (patch)
tree5b87d7c55254be042d071b4ef60990fc4ffb66ab
parent74e796870e2480cde4d14c622cef7369a8e10d2b (diff)
Anchor nonexistent_provides at the end
Anchor the nonexistent_provides regex at the end, so it matches the whole provide name, avoiding unpleasant surprises.
-rwxr-xr-xcalm/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/package.py b/calm/package.py
index f70fb98..552a2f3 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -738,7 +738,7 @@ def validate_packages(args, packages, valid_provides_extra=None, missing_obsolet
# all packages listed in a hint must exist (unless the
# disable-check option says that's ok)
- if (r not in valid) and (r not in past_mistakes.expired_provides) and (not any(re.match(nep, r) for nep in past_mistakes.nonexistent_provides)):
+ if (r not in valid) and (r not in past_mistakes.expired_provides) and (not any(re.match(nep + r'$', r) for nep in past_mistakes.nonexistent_provides)):
if okmissing not in getattr(args, 'disable_check', []):
logging.error("package '%s' version '%s' %s: '%s', but nothing satisfies that" % (p, v, c, r))
error = True