summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-17 21:37:14 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-02-17 21:37:14 +0000
commit9672c7aed1d3def29162d7134c3a0ae23074be7f (patch)
treee1901b22603f8faf1855e8d68979eb852be98d81
parent3512501681291da3faefc2b056b78f07001b7904 (diff)
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35645 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 81c69f7aa5..e5cd52c806 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 = (