summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-02-17 21:37:14 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-02-17 21:37:14 +0000
commit65fc9eee18d556305789d5e2b6c06a9acf49c8e9 (patch)
treed97ed13572968fc43045213f5ac22f062477beaa /scripts
parent3f749d1e8e5b36e8a0d5450838e52ab4efd31001 (diff)
downloadmtk-20170518-65fc9eee18d556305789d5e2b6c06a9acf49c8e9.zip
mtk-20170518-65fc9eee18d556305789d5e2b6c06a9acf49c8e9.tar.gz
mtk-20170518-65fc9eee18d556305789d5e2b6c06a9acf49c8e9.tar.bz2
Add xz compressed packages to known extensions of dl_cleanup
Add .tar.xz, .txz, and .orig.tar.xz as known extensions to dl_cleanup.py. Signed-off-by: Ian Leonard <antonlacon@gmail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35645
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dl_cleanup.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/dl_cleanup.py b/scripts/dl_cleanup.py
index 81c69f7..e5cd52c 100755
--- a/scripts/dl_cleanup.py
+++ b/scripts/dl_cleanup.py
@@ -3,7 +3,8 @@
# OpenWRT download directory cleanup utility.
# Delete all but the very last version of the program tarballs.
#
-# Copyright (c) 2010 Michael Buesch <mb@bu3sch.de>
+# Copyright (C) 2010 Michael Buesch <mb@bu3sch.de>
+# Copyright (C) 2013 OpenWrt.org
"""
import sys
@@ -75,11 +76,14 @@ def parseVer_GIT(match, filepath):
extensions = (
".tar.gz",
".tar.bz2",
+ ".tar.xz",
".orig.tar.gz",
".orig.tar.bz2",
+ ".orig.tar.xz",
".zip",
".tgz",
".tbz",
+ ".txz",
)
versionRegex = (