summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-15 00:06:06 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-15 00:06:06 +0100
commit23578ce0f2d5ceedcdca58c58b390d090572cb4c (patch)
treeaf63761d060aef2c759ff24adaabfb63637bec7f
parent17899d277a6f5219a6b0534d38c884b264d5ad89 (diff)
downloaddbscripts-23578ce0f2d5ceedcdca58c58b390d090572cb4c.tar.gz
dbscripts-23578ce0f2d5ceedcdca58c58b390d090572cb4c.tar.xz
make-sourceball: move popd call before return
This ensures the 'cp' succeeds Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xmisc-scripts/make-sourceball3
1 files changed, 2 insertions, 1 deletions
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
}