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>2020-12-31 19:19:38 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2021-01-04 17:32:28 +0300
commit2a428feb38573f239c06767278cfae505051a41e (patch)
tree9b94ef77e84db9813fc7fc3a511a3a39a0c35045 /calm/hint-migrate.py
parent46bebfc1d8355dd14c1d46e79e55cfc45d5c1472 (diff)
Factor out regex for various compression file suffixes
Factor out the regex for various compression file suffixes into common_constants. This is still not ideal as it leaves various not-quite identical regexs for matching filenames.
Diffstat (limited to 'calm/hint-migrate.py')
-rw-r--r--calm/hint-migrate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/hint-migrate.py b/calm/hint-migrate.py
index d7c6f41..e06edc6 100644
--- a/calm/hint-migrate.py
+++ b/calm/hint-migrate.py
@@ -51,7 +51,7 @@ def hint_migrate(args):
migrate = set()
vr = set()
for f in files:
- match = re.match(r'^(.*?)(-src|)\.tar\.(bz2|gz|lzma|xz)$', f)
+ match = re.match(r'^(.*?)(-src|)\.tar' + common_constants.PACKAGE_COMPRESSIONS_RE + r'$', f)
# not an archive?
if not match: