From 966c53e8ce0b11b9cd7fb88a497f2c086c682676 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 27 May 2008 14:23:24 -0400 Subject: Minor changes to the make-sourceball script Signed-off-by: Aaron Griffin --- misc-scripts/make-sourceball | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'misc-scripts') diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index c4eb459..e9e2152 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -18,7 +18,7 @@ arch="$3" ##### Arch specific stuff. TODO make this configurable ##### srcpath="/home/aaron/public_html/sources/" -svnpath="file:///home/svn-packages/$packagename/repos/$reponame-$arch" +svnpath="file:///home/svn-packages/$packagename/" ############################################################ WORKDIR="/tmp/make-sourceball.$svnrepo.$UID" @@ -97,11 +97,20 @@ cd "$WORKDIR" echo "Creating Source tarball for $packagename ($reponame-$arch)" -if /usr/bin/svn checkout -N $svnpath; then +if /usr/bin/svn checkout -N "$svnpath/repos/$reponame-$arch"; then cd "$reponame-$arch" - echo "Cheating with makepkg to download sources" - /usr/bin/makepkg -g || die "Error downloading files" - create_srcpackage + if /usr/bin/makepkg -g; then + create_srcpackage + else #try the trunk, it may have updates to the source URL + if /usr/bin/svn checkout -N "$svnpath/trunk"; then + cd "trunk" + if /usr/bin/makepkg -g; then + create_srcpackage + else + die "Cannot get sources properly. Dying" + fi + fi + fi else die "Package '$packagename' does not exist in repo $reponame-$arch" fi -- cgit v1.2.3-24-g4f1b