summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 20:53:37 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 20:53:37 +0100
commit767257f9802709ef7c5f516b29bb1f498bdcea78 (patch)
tree55e14ac54cd951d07ad0a5328c3c61b0a7b4706f /misc-scripts/make-sourceball
parent75de4d131ed424bfb7c349a6b55cedf9705879bd (diff)
downloaddbscripts-767257f9802709ef7c5f516b29bb1f498bdcea78.tar.gz
dbscripts-767257f9802709ef7c5f516b29bb1f498bdcea78.tar.xz
Rename local 'arch' variable to '_arch'
We source the PKGBUILD, which causes issues here Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index c2ed576..72f4a1f 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -15,7 +15,7 @@ source_makepkg
packagename="$1"
reponame="$2"
-arch="$3"
+_arch="$3"
srcpath="$FTP_BASE/sources/"
logpath="/var/log/sourceballs/"
@@ -68,7 +68,7 @@ create_srcpackage() {
if ! /usr/bin/makepkg --allsource >"$logpath/$pkgname" 2>&1; then
popd >/dev/null
/bin/gzip -9 "$logpath/$pkgname"
- die "\tFailed to download source for $pkgname-$pkgver-$pkgrel ($reponame-$arch)"
+ die "\tFailed to download source for $pkgname-$pkgver-$pkgrel ($reponame-$_arch)"
fi
popd >/dev/null
/bin/rm "$logpath/$pkgname"
@@ -99,8 +99,8 @@ set_umask
/bin/mkdir -p "$logpath"
cd "$WORKDIR"
-if /usr/bin/svn export -q "$SVN_PATH/$packagename/repos/$reponame-$arch" $packagename; then
+if /usr/bin/svn export -q "$SVN_PATH/$packagename/repos/$reponame-$_arch" $packagename; then
create_srcpackage "$packagename"
else
- die "\tPackage '$packagename' does not exist in repo '$reponame-$arch'"
+ die "\tPackage '$packagename' does not exist in repo '$reponame-$_arch'"
fi