diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-15 19:20:32 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-04-15 19:22:06 +0200 |
commit | 2e0364b61c96598191e75fb9556fe454d6a1fb5f (patch) | |
tree | 7d41b67dd30693ffb823860e565bbc0eefb740ee /db-update | |
parent | c3c08ee41c01b0beb2f53d7e75cf089dfbae9f99 (diff) | |
download | dbscripts-2e0364b61c96598191e75fb9556fe454d6a1fb5f.tar.gz dbscripts-2e0364b61c96598191e75fb9556fe454d6a1fb5f.tar.xz |
Remove SQL database related tasks from these scripts
Updating a SQL database should NOT be a task of these
scripts. They should deal ONLY with the act of maintaining
a pacman repo
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'db-update')
-rwxr-xr-x[-rw-r--r--] | db-update | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/db-update b/db-update index 24ca489..d17fab4 100644..100755 --- a/db-update +++ b/db-update @@ -27,7 +27,7 @@ fi WORKDIR="~/.dbscripts" CHECKOUTDIR="$WORKDIR/checkout" -LOCKFILE="/tmp/.repolck.$arch.$repoid" +LOCKFILE="/tmp/.repolck.$arch.$reponame" DBFILE="$WORKDIR/$reponame.db.tar.gz" if [ ! `type -p fakeroot` ]; then @@ -129,13 +129,6 @@ if [ -d $stagedir/add -a "`ls $stagedir/add`" ]; then cp $DBFILE $ftppath - # only for i686 (for now) - if [ "$arch" = "i686" ]; then - echo "==> Scanning for New/Updated packages..." >&2 - cd $stagedir/add - $ARCHDIR/pkgdb1 $CHECKOUTDIR $svnrepo | $ARCHDIR/pkgdb2-add $repoid $stagedir/add - fi - # move the package files into the ftp directory mv -f $stagedir/add/*.pkg.tar.gz $ftppath fi @@ -157,18 +150,6 @@ if [ -d $stagedir/del -a "`ls $stagedir/del`" ]; then cp $DBFILE $ftppath - # only for i686 (for now) - if [ "$arch" = "i686" ]; then - echo "==> Scanning for Deleted packages..." >&2 - cd $stagedir/del - ( - for i in *.pkg.tar.gz; do - pkgname=$(getpkgname $i) - echo $pkgname - done - ) | $ARCHDIR/pkgdb2-del $repoid $stagedir/del - fi - # remove the package files rm -f $stagedir/del/*.pkg.tar.gz fi |