From ac14b100b2e85f7c2eea63f1d7f4307e062fa46d Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 4 Feb 2009 16:20:54 -0500 Subject: More sourceball output cleanup Signed-off-by: Aaron Griffin --- misc-scripts/make-sourceball | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index 8237176..cdbd697 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -57,6 +57,9 @@ create_srcpackage() { if [ -d "$1" ]; then pushd "$1" >/dev/null . "$BUILDSCRIPT" + + echo "Creating source tarball for $pkgname-$pkgver-$pkgrel" + if ! chk_license ${license[@]}; then echo -e "\tPackage license (${license[@]}) does not require source tarballs. Doing nothing" cleanup 0 @@ -64,7 +67,7 @@ create_srcpackage() { if ! /usr/bin/makepkg --allsource >/dev/null 2>&1; then popd >/dev/null - return 1 + die "\tFailed to download source for $pkgname-$pkgver-$pkgrel ($reponame-$arch)" fi popd >/dev/null @@ -93,19 +96,8 @@ set_umask /bin/mkdir -p "$WORKDIR" cd "$WORKDIR" -echo "Creating Source tarball for $packagename ($reponame-$arch)" - if /usr/bin/svn export -q "$SVN_PATH/$packagename/repos/$reponame-$arch" $packagename; then create_srcpackage "$packagename" - if [ $? -eq 0 ]; then - exit 0 - elif [ $? -eq 1 ]; then - #trunk sometimes has updated URLs - die "\tFailed to download source" - exit 1 - elif [ $? -eq 2 ]; then - die "\tFailed to compress package" - fi else - die "\tPackage does not exist in repo" + die "\tPackage '$packagename' does not exist in repo '$reponame-$arch'" fi -- cgit v1.2.3-24-g4f1b