summaryrefslogtreecommitdiffstats
path: root/db-arch
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2004-08-20 01:47:03 +0200
committerJudd Vinet <judd@archlinux.org>2004-08-20 01:47:03 +0200
commite11622c10fa4b75d264c78c668282f5b21e6f158 (patch)
treec54cba3a86085e44e7e014fb33984b3f0c80c3f1 /db-arch
parent5c8c26b650008d7af1305d5e304fb5a2c8f3e85c (diff)
downloaddbscripts-e11622c10fa4b75d264c78c668282f5b21e6f158.tar.gz
dbscripts-e11622c10fa4b75d264c78c668282f5b21e6f158.tar.xz
added cleanup calls to db- scripts, removed export-failure checks from db-testing, as its allowed for tesitng
Diffstat (limited to 'db-arch')
-rwxr-xr-xdb-arch4
1 files changed, 3 insertions, 1 deletions
diff --git a/db-arch b/db-arch
index 823de44..a3938c3 100755
--- a/db-arch
+++ b/db-arch
@@ -1,5 +1,5 @@
#!/bin/bash
-# $Id: db-arch,v 1.19 2004/08/17 19:17:36 judd Exp $
+# $Id: db-arch,v 1.20 2004/08/19 23:47:03 judd Exp $
uid=`id -u`
repoid=1
@@ -40,11 +40,13 @@ cd $TMPDIR
CVS_RSH=ssh CVSROOT=:ext:cvs.archlinux.org:/home/cvs-arch cvs -q export -r CURRENT arch/build
if [ $? -gt 0 ]; then
echo "==> CVS export failed!"
+ cleanup
exit 1
fi
# check again
if [ -d /tmp/.gensync ]; then
echo "error: someone else is currently running gensync!"
+ cleanup
exit 1
fi
/usr/bin/gensync $TMPDIR/arch/build $TMPDIR/current.db.tar.gz /home/ftp/current/os/i686