# HG changeset patch # User Masamichi Hosoda # Date 1440931835 -32400 # Node ID 56f798696a60604d554ea0deb259239ed423ae61 # Parent a88587a9132686d74aa2d647f3f46988e61d4e5f Fix misc.is_ball tarball extension .tar.xz, .txz, .tar.lzma, .tlz diff -r a88587a91326 -r 56f798696a60 gub/misc.py --- 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 ('/')