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

Diff of /eclass/rpm.eclass

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

Revision 1.19 Revision 1.20
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/rpm.eclass,v 1.19 2009/10/05 06:14:36 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.20 2010/07/18 21:57:20 vapier Exp $
4 4
5# @ECLASS: rpm.eclass 5# @ECLASS: rpm.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# base-system@gentoo.org
8# @BLURB: convenience class for extracting RPMs 8# @BLURB: convenience class for extracting RPMs
45 rpm_unpack "$@" 45 rpm_unpack "$@"
46 46
47 # no .src.rpm files, then nothing to do 47 # no .src.rpm files, then nothing to do
48 [[ "$* " != *".src.rpm " ]] && return 0 48 [[ "$* " != *".src.rpm " ]] && return 0
49 49
50 local old_shopts=$(shopt -p nullglob)
51 shopt -s nullglob 50 eshopts_push -s nullglob
52 51
53 # unpack everything 52 # unpack everything
54 local a 53 local a
55 for a in *.tar.{gz,bz2} *.t{gz,bz2} *.zip *.ZIP ; do 54 for a in *.tar.{gz,bz2} *.t{gz,bz2} *.zip *.ZIP ; do
56 unpack "./${a}" 55 unpack "./${a}"
57 rm -f "${a}" 56 rm -f "${a}"
58 done 57 done
59 58
60 eval "${old_shopts}" 59 eshopts_pop
61 60
62 return 0 61 return 0
63} 62}
64 63
65# @FUNCTION: rpm_src_unpack 64# @FUNCTION: rpm_src_unpack

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20