summaryrefslogtreecommitdiffstats
path: root/db-extra
diff options
context:
space:
mode:
Diffstat (limited to 'db-extra')
-rwxr-xr-xdb-extra12
1 files changed, 7 insertions, 5 deletions
diff --git a/db-extra b/db-extra
index 4c25389..c2f3574 100755
--- a/db-extra
+++ b/db-extra
@@ -1,8 +1,10 @@
#!/bin/bash
-# $Id: db-extra,v 1.9 2005/02/01 03:00:47 judd Exp $
+# $Id: db-extra,v 1.10 2005/02/25 21:27:44 judd Exp $
uid=`id -u`
repoid=2
+ftppath="/home/ftp/extra/os/i686"
+
TMPDIR="/tmp/archpkg.$repoid.$uid"
cleanup() {
@@ -49,15 +51,15 @@ if [ -d /tmp/.gensync ]; then
cleanup
exit 1
fi
-/usr/bin/gensync $TMPDIR/extra $TMPDIR/extra.db.tar.gz /home/ftp/extra/os/i686
-[ -f $TMPDIR/extra.db.tar.gz ] && mv -f $TMPDIR/extra.db.tar.gz /home/ftp/extra/os/i686
+/usr/bin/gensync $TMPDIR/extra $TMPDIR/extra.db.tar.gz $ftppath
+[ -f $TMPDIR/extra.db.tar.gz ] && mv -f $TMPDIR/extra.db.tar.gz $ftppath
echo "==> Scanning for New/Updated/Deleted packages..." >&2
cd $TMPDIR/extra
-/arch/pkgdb1 $repoid | /arch/pkgdb2 $repoid
+/arch/pkgdb1 $repoid | /arch/pkgdb2 $repoid $ftppath
echo "==> Scanning for missing packages..." >&2
/arch/genpkglist extra
-mv packages.txt /home/ftp/extra/os/i686/packages.txt
+mv packages.txt $ftppath/packages.txt
cleanup