Browse Source

sde-download: added xz support

user/chris/test/arm
Christian Wiese 13 years ago
parent
commit
671b4a4e80
3 changed files with 7 additions and 3 deletions
  1. +2
    -0
      bin/sde-download
  2. +2
    -2
      lib/functions.in
  3. +3
    -1
      lib/sde-download/validate.sh

+ 2
- 0
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)

+ 2
- 2
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"

+ 3
- 1
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

Loading…
Cancel
Save