diff options
author | Alastair Tse <liquidx@gentoo.org> | 2003-06-21 14:22:18 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2003-06-21 14:22:18 +0000 |
commit | 067eb9f72e9495a61418bdf6967acf8ada923388 (patch) | |
tree | 58d31f96a0f72f6ccc1abcbdd21a865242f52213 /eclass | |
parent | first rpm.eclass demonstration (diff) | |
download | historical-067eb9f72e9495a61418bdf6967acf8ada923388.tar.gz historical-067eb9f72e9495a61418bdf6967acf8ada923388.tar.bz2 historical-067eb9f72e9495a61418bdf6967acf8ada923388.zip |
slight touchup with find command
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/rpm.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/rpm.eclass b/eclass/rpm.eclass index 3ded9db08ed9..05ef6c238e65 100644 --- a/eclass/rpm.eclass +++ b/eclass/rpm.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.3 2003/06/21 13:47:34 liquidx Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/rpm.eclass,v 1.4 2003/06/21 14:22:18 liquidx Exp $ # Author : Alastair Tse <liquidx@gentoo.org> (21 Jun 2003) # @@ -58,11 +58,11 @@ rpm_src_unpack() { if [ "${prefix##*.}" = "src" ]; then OLD_DISTDIR=${DISTDIR} DISTDIR=${WORKDIR} - findopts="-name *.tar" + findopts="* -maxdepth 0 -name *.tar" for t in *.tar.gz *.tgz *.tbz2 *.tar.bz2 *.zip *.ZIP; do findopts="${findopts} -o -name ${t}" done - for t in $(find * ${findopts} | xargs); do + for t in $(find ${findopts} | xargs); do unpack ${t} rm -f ${t} done |