aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2022-03-31 21:15:51 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2022-09-14 01:34:43 +0200
commit428c5bf3d1b8a245d1fc3e8be6e23058c59aba8c (patch)
tree817379de7f70e1b56f44f73337ddbec60a662ce7 /scripts
parente8135247c19924a4bd164f422dd589465aaa294d (diff)
downloadupstream-428c5bf3d1b8a245d1fc3e8be6e23058c59aba8c.tar.gz
upstream-428c5bf3d1b8a245d1fc3e8be6e23058c59aba8c.tar.bz2
upstream-428c5bf3d1b8a245d1fc3e8be6e23058c59aba8c.zip
scripts: add additional regex for dl_cleanup
Add additional regex for dl_cleanup script to handle case with xxx-v1.2a and xxx-v1.2.3a Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dl_cleanup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py
index ad1b88c8b9..d22762136a 100755
--- a/scripts/dl_cleanup.py
+++ b/scripts/dl_cleanup.py
@@ -119,8 +119,10 @@ versionRegex = (
(re.compile(r"(.+)[-_](\d\d\d\d)-?(\d\d)-?(\d\d)"), parseVer_ymd), # xxx-YYYY-MM-DD
(re.compile(r"(.+)[-_]([0-9a-fA-F]{40,40})"), parseVer_GIT), # xxx-GIT_SHASUM
(re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)(\w?)"), parseVer_123), # xxx-1.2.3a
+ (re.compile(r"(.+)[-_]v(\d+)\.(\d+)\.(\d+)(\w?)"), parseVer_123), # xxx-v1.2.3a
(re.compile(r"(.+)[-_](\d+)_(\d+)_(\d+)"), parseVer_123), # xxx-1_2_3
(re.compile(r"(.+)[-_](\d+)\.(\d+)(\w?)"), parseVer_12), # xxx-1.2a
+ (re.compile(r"(.+)[-_]v(\d+)\.(\d+)(\w?)"), parseVer_12), # xxx-v1.2a
(re.compile(r"(.+)[-_]r?(\d+)"), parseVer_r), # xxx-r1111
)