From 767257f9802709ef7c5f516b29bb1f498bdcea78 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 13 Feb 2009 11:53:37 -0800 Subject: Rename local 'arch' variable to '_arch' We source the PKGBUILD, which causes issues here Signed-off-by: Aaron Griffin --- misc-scripts/make-sourceball | 8 ++++---- 1 file 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 -- cgit v1.1-4-g5e80