From 23578ce0f2d5ceedcdca58c58b390d090572cb4c Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Sat, 14 Feb 2009 15:06:06 -0800 Subject: make-sourceball: move popd call before return This ensures the 'cp' succeeds Signed-off-by: Aaron Griffin --- misc-scripts/make-sourceball | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'misc-scripts/make-sourceball') diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index 4b6bb5c..4308c0e 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -82,7 +82,6 @@ create_srcpackage() { /bin/gzip -9 "$logpath/$pkgname" die "\tFailed to download source for $pkgname-$pkgver-$pkgrel ($reponame-$_arch)" fi - popd >/dev/null /bin/rm "$logpath/$pkgname" local pkg_file="${pkgname}-${pkgver}-${pkgrel}${SRCEXT}" @@ -92,6 +91,8 @@ create_srcpackage() { fi cp "$pkgname/$pkg_file" "$srcpath" + popd >/dev/null + return 0 fi } -- cgit v1.2.3-24-g4f1b