#!/bin/bash # tiny util to regenreate the databse on the LOCAL machine # called with if [ $# -ne 2 ] then echo "incorrect number of args" echo "update_db_repo directory repo" echo "EX: update_db_repo /data/local/pkg_repo/i686/core-testing core-testing" exit 1 fi cd $1 REPO=$2 echo " --------------------------" echo "updating database for $REPO" echo " --------------------------" pwd repo-add -q $REPO.db.tar.gz *.pkg.tar.gz cd -