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-04-30 18:04:11 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2023-05-02 17:17:13 +0300
commitdf6c091c36d3406796f9c20f2386f59e4ab70518 (patch)
tree18b6b465555cebb0bc776ec4710a7e53574a5874 /calm/package.py
parent5fc54135fc49a4dd7718bfb76ea9733b0d1cee31 (diff)
Use regex matching for version provides:
This makes out-of-order uploading of users and providers of future versions of these smoother.
Diffstat (limited to 'calm/package.py')
-rwxr-xr-xcalm/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/package.py b/calm/package.py
index 9bcaf04..f60c238 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -729,7 +729,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.nonexistent_provides + past_mistakes.expired_provides):
+ 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 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