On Thu, 19 Aug 2004 21:48:36 -0400 (EDT) "Charles Ulrich" <[EMAIL PROTECTED]> wrote:
> > Is there any downside to generating INDEX.db with the sysutils/portindex > program rather than portsdb -Uu? It's not the canonical way and it is not so much tested. I'm using it with no problems since portidex appeared. Note that portindex generates INDEX(-5) and you still have to run portsdb -u. If you like the idea of having you index rebuilt in a few minutes, you might want to petition kris@ to run it on pointyhat on regular builds and compare the results with `make index` output. I'm using something like : do_build_new_index() { echo if [ ! -e ${LOG_DIR}/need_new_index ] then echo "No need to rebuild INDEX-5" return 0 fi cd /usr/ports || return 1 cp INDEX-5 INDEX-5.bak || return 1 if /usr/local/bin/portindex then rm ${LOG_DIR}/need_new_index cp INDEX.db INDEX.db.bak || return 1 sort < /usr/ports/INDEX-5 > /tmp/INDEX-5.sorted mv /tmp/INDEX-5.sorted /usr/ports/INDEX-5 echo '--- Done with INDEX building' echo echo '--- Begining building portsdb' /usr/local/sbin/portsdb -u || cp INDEX.db.bak INDEX.db && return 1 echo '--- Done bulding portsdb' echo cd /var/db/pkg || return 1 cp pkgdb.db pkgdb.db.bak || return 1 /usr/local/sbin/pkgdb -u || cp pkgdb.db.bak pkgdb.db && return 1 echo else echo "ports_upd-ERROR: Index build FAILLED, restoring old INDEX-5" cp INDEX-5.bak INDEX-5 return 1 fi } -- IOnut Unregistered ;) FreeBSD "user" _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"