diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-12-31 19:19:38 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2021-01-04 17:32:28 +0300 |
commit | 2a428feb38573f239c06767278cfae505051a41e (patch) | |
tree | 9b94ef77e84db9813fc7fc3a511a3a39a0c35045 /calm/hint-migrate.py | |
parent | 46bebfc1d8355dd14c1d46e79e55cfc45d5c1472 (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.py | 2 |
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: |