From: jow Date: Sun, 26 May 2013 17:28:11 +0000 (+0000) Subject: scripts: dl_cleanup.py: properly detect file names with - version... X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=459c674f3d37170c112f7f64f9adb70f5afa4700;hp=9974b8d093664423529afd209518b608c0cf6d11 scripts: dl_cleanup.py: properly detect file names with - version string git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36729 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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