aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2013-05-26 17:28:11 +0000
committerJo-Philipp Wich <jow@openwrt.org>2013-05-26 17:28:11 +0000
commit7f76ac5f4305fd69f9b452bb545172f5e6da20a7 (patch)
tree5d2b800deb59e00ee54d5fa7e7e683b879c1b3db
parent4fb9476dd32d1785ca9d9cf42de21d9b5f1f7842 (diff)
downloadupstream-7f76ac5f4305fd69f9b452bb545172f5e6da20a7.tar.gz
upstream-7f76ac5f4305fd69f9b452bb545172f5e6da20a7.tar.bz2
upstream-7f76ac5f4305fd69f9b452bb545172f5e6da20a7.zip
scripts: dl_cleanup.py: properly detect file names with <date>-<githash> version string
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36729 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-xscripts/dl_cleanup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py
index e5cd52c806..2d6895e460 100755
--- a/scripts/dl_cleanup.py
+++ b/scripts/dl_cleanup.py
@@ -87,9 +87,9 @@ extensions = (
)
versionRegex = (
- (re.compile(r"(.+)[-_]([0-9a-fA-F]{40,40})"), parseVer_GIT), # xxx-GIT_SHASUM
(re.compile(r"(.+)[-_](\d+)\.(\d+)\.(\d+)\.(\d+)"), parseVer_1234), # xxx-1.2.3.4
(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"(.+)[-_](\d+)_(\d+)_(\d+)"), parseVer_123), # xxx-1_2_3
(re.compile(r"(.+)[-_](\d+)\.(\d+)(\w?)"), parseVer_12), # xxx-1.2a