[oe-commits] Roy Li : perl: do not use pushd

git at git.openembedded.org git at git.openembedded.org
Tue Sep 24 16:44:31 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: ec7e738845f72888b0016340d7da636e5ec46a1b
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ec7e738845f72888b0016340d7da636e5ec46a1b

Author: Roy Li <rongqing.li at windriver.com>
Date:   Tue Sep 24 17:23:55 2013 +0800

perl: do not use pushd

pushd is not available when system is using dash as default shell

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/perl/perl-ptest.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/perl/perl-ptest.inc b/meta/recipes-devtools/perl/perl-ptest.inc
index caa2b61..15afe2d 100644
--- a/meta/recipes-devtools/perl/perl-ptest.inc
+++ b/meta/recipes-devtools/perl/perl-ptest.inc
@@ -21,11 +21,11 @@ do_install_ptest () {
 	# Tweaks to make tests pass
 	cp -pv lib/unicore/TestProp.pl ${D}${libdir}/perl/${PV}/unicore/
 	# Put all *.t files from the lib dir in the ptest package
-	pushd lib
+	cd lib
 	for file in `find -name \*.t`; do
 	    tar -cf - $file | ( cd ${D}${libdir}/perl/${PV} && tar -xf - )
 	done
-	popd
+	cd ..
 
 	mkdir -p ${D}${libdir}/perl/${PV}/XS
 	cp -pv lib/XS/APItest.pm ${D}${libdir}/perl/${PV}/XS/



More information about the Openembedded-commits mailing list