From 9939efc4d23fc1b338adf01a562587f3a34e4250 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 26 Feb 2012 16:13:38 +0000 Subject: Convert to eshopts_{push,pop}, bug 328871 by Spanky. --- eclass/tla.eclass | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'eclass/tla.eclass') diff --git a/eclass/tla.eclass b/eclass/tla.eclass index 551087ff9a3e..e6cee2f977db 100644 --- a/eclass/tla.eclass +++ b/eclass/tla.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/tla.eclass,v 1.11 2011/12/27 17:55:12 fauli Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/tla.eclass,v 1.12 2012/02/26 16:13:38 pacho Exp $ # # Original Author: Jeffrey Yasskin # @@ -17,6 +17,7 @@ # TODO: # Make it support particular revisions. +inherit eutils # Don't download anything other than the tla archive SRC_URI="" @@ -179,10 +180,9 @@ tla_src_unpack() { # Use ${WORKDIR}/${P} rather than ${S} so user can point ${S} to something inside. mkdir -p "${WORKDIR}/${P}" - local OLD_SHOPTS=$(shopt -p) - shopt -s dotglob # get any dotfiles too. + eshopts_push -s dotglob # get any dotfiles too. cp -Rf "$ETLA_TOP_DIR/$ETLA_CACHE_DIR"/* "${WORKDIR}/${P}" - eval "$OLD_SHOPTS" + eshopts_pop # implement some of base_src_unpack's functionality; # note however that base.eclass may not have been inherited! -- cgit v1.2.3-65-gdbad