Răsfoiți Sursa

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 <[email protected]>
Signed-off-by: Gabor Juhos <[email protected]>

SVN-Revision: 35645
Gabor Juhos 12 ani în urmă
părinte
comite
65fc9eee18
1 a modificat fișierele cu 5 adăugiri și 1 ștergeri
  1. 5 1
      scripts/dl_cleanup.py

+ 5 - 1
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 <[email protected]>
+# Copyright (C) 2010 Michael Buesch <[email protected]>
+# 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 = (