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

Diff of /eclass/unpacker.eclass

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

Revision 1.5 Revision 1.6
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.5 2012/02/13 20:53:34 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/unpacker.eclass,v 1.6 2012/04/05 03:20:42 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
309 fi 309 fi
310 310
311 [[ ${arch} != unpack_* ]] && unpack_banner "${a}" 311 [[ ${arch} != unpack_* ]] && unpack_banner "${a}"
312 312
313 if [[ -z ${arch} ]] ; then 313 if [[ -z ${arch} ]] ; then
314 # Need to decompress the file into $PWD #408801
315 local _a=${a%.*}
314 ${comp} "${a}" > "${a%.*}" 316 ${comp} "${a}" > "${_a##*/}"
315 elif [[ -z ${comp} ]] ; then 317 elif [[ -z ${comp} ]] ; then
316 ${arch} "${a}" 318 ${arch} "${a}"
317 else 319 else
318 ${comp} "${a}" | ${arch} - 320 ${comp} "${a}" | ${arch} -
319 fi 321 fi

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20