changeset 6432:56f798696a60

Fix misc.is_ball tarball extension .tar.xz, .txz, .tar.lzma, .tlz
author Masamichi Hosoda <trueroad@trueroad.jp>
date Sun, 30 Aug 2015 19:50:35 +0900
parents a88587a91326
children a3a0085299f5
files gub/misc.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/misc.py	Sat Aug 29 21:15:11 2015 +0900
+++ b/gub/misc.py	Sun Aug 30 19:50:35 2015 +0900
@@ -164,7 +164,7 @@
     # FIXME: do this properly, by identifying different flavours:
     # .deb, tar.gz, cygwin -[build].tar.bz2 etc and have simple
     # named rules for them.
-    return re.match ('^(.*?)[-_]([0-9].*(-[0-9]+)?)([._][a-z]+[0-9]*)?(\.tar\.(bz2|gz)|\.gu[bp]|\.deb|\.tgz|\.zip)$', s)
+    return re.match ('^(.*?)[-_]([0-9].*(-[0-9]+)?)([._][a-z]+[0-9]*)?(\.tar\.(bz2|gz|xz|lzma)|\.gu[bp]|\.deb|\.tgz|\.txz|\.tlz|\.zip)$', s)
 
 def split_ball (s):
     p = s.rfind ('/')