diff --git a/bin/sde-download b/bin/sde-download index a97611f..3b79cf1 100755 --- a/bin/sde-download +++ b/bin/sde-download @@ -526,6 +526,8 @@ download_file_now() { typeexpr="gzip compressed data" ;; *.bz2|*.tbz2|*.tbz) typeexpr="bzip2 compressed data" ;; + *.xz) + typeexpr="xz compressed data" ;; *.Z|*.tZ) typeexpr="compress'd data" ;; *.zip|*.jar) diff --git a/lib/functions.in b/lib/functions.in index 115faa5..49aade1 100644 --- a/lib/functions.in +++ b/lib/functions.in @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: lib/functions.in -# Copyright (C) 2006 - 2011 The OpenSDE Project +# Copyright (C) 2006 - 2012 The OpenSDE Project # Copyright (C) 2004 - 2006 The T2 SDE Project # Copyright (C) 1998 - 2003 Clifford Wolf # @@ -96,7 +96,7 @@ hasflag() { # outputs filename converted to .bz2. stdin and $1 inputs are accepted # bz2filename() { - local pattern='-e s,\.\(t\?\)\(gz\|Z\)$,.\1bz2,' + local pattern='-e s,\.\(t\?\)\(gz\|xz\|Z\)$,.\1bz2,' pattern="-e s,\.gpg$,, $pattern" pattern="-e s,\.tar$,\.tar.bz2, $pattern" diff --git a/lib/sde-download/validate.sh b/lib/sde-download/validate.sh index a0879b4..1e087bc 100644 --- a/lib/sde-download/validate.sh +++ b/lib/sde-download/validate.sh @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: lib/sde-download/validate.sh -# Copyright (C) 2006 - 2008 The OpenSDE Project +# Copyright (C) 2006 - 2011 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -33,6 +33,8 @@ case "${gzfile##*.}" in extractor=bunzip2 ;; gz|tgz) format=gzip extractor=gunzip ;; + xz) format=xz + extractor=unxz ;; tar) format=tar extractor=cat ;; Z) format=Z