|
@@ -3,7 +3,8 @@
|
|
# OpenWRT download directory cleanup utility.
|
|
# OpenWRT download directory cleanup utility.
|
|
# Delete all but the very last version of the program tarballs.
|
|
# 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
|
|
import sys
|
|
@@ -75,11 +76,14 @@ def parseVer_GIT(match, filepath):
|
|
extensions = (
|
|
extensions = (
|
|
".tar.gz",
|
|
".tar.gz",
|
|
".tar.bz2",
|
|
".tar.bz2",
|
|
|
|
+ ".tar.xz",
|
|
".orig.tar.gz",
|
|
".orig.tar.gz",
|
|
".orig.tar.bz2",
|
|
".orig.tar.bz2",
|
|
|
|
+ ".orig.tar.xz",
|
|
".zip",
|
|
".zip",
|
|
".tgz",
|
|
".tgz",
|
|
".tbz",
|
|
".tbz",
|
|
|
|
+ ".txz",
|
|
)
|
|
)
|
|
|
|
|
|
versionRegex = (
|
|
versionRegex = (
|