/[gentoo-x86]/eclass/unpacker.eclass
Gentoo

Diff of /eclass/unpacker.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.7 Revision 1.8
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.7 2012/04/21 05:45:29 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.8 2012/04/29 00:15:10 vapier Exp $
4 4
5# @ECLASS: unpacker.eclass 5# @ECLASS: unpacker.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs 8# @BLURB: helpers for extraneous file formats and consistent behavior across EAPIs
290 a=$(find_unpackable_file "${a}") 290 a=$(find_unpackable_file "${a}")
291 291
292 # first figure out the decompression method 292 # first figure out the decompression method
293 case ${m} in 293 case ${m} in
294 *.bz2|*.tbz|*.tbz2) 294 *.bz2|*.tbz|*.tbz2)
295 local bzcmd=${PORTAGE_BZIP2_COMMAND:-$(type -P pbzip2 || bzip2)} 295 local bzcmd=${PORTAGE_BZIP2_COMMAND:-$(type -P pbzip2 || type -P bzip2)}
296 local bzuncmd=${PORTAGE_BUNZIP2_COMMAND:-${PORTAGE_BZIP2_COMMAND} -d} 296 local bzuncmd=${PORTAGE_BUNZIP2_COMMAND:-${bzcmd} -d}
297 : ${UNPACKER_BZ2:=${bzuncmd}} 297 : ${UNPACKER_BZ2:=${bzuncmd}}
298 comp="${UNPACKER_BZ2} -c" 298 comp="${UNPACKER_BZ2} -c"
299 ;; 299 ;;
300 *.z|*.gz|*.tgz) 300 *.z|*.gz|*.tgz)
301 comp="gzip -dc" ;; 301 comp="gzip -dc" ;;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20