svn commit: r246964 - user/bugmeister/gnats/tools
Mark Linimon
linimon at FreeBSD.org
Tue Feb 19 02:30:18 UTC 2013
Author: linimon (doc,ports committer)
Date: Tue Feb 19 02:30:17 2013
New Revision: 246964
URL: http://svnweb.freebsd.org/changeset/base/246964
Log:
On occasion, our aging and creaky GNATS becomes confused and corrupts the
gnats-adm/index file. This well-worn workaround simply forces an index
rebuild and substitutes the new one.
Since the codebase is such an antique, it's probably not really worth doing
anything else.
Added:
user/bugmeister/gnats/tools/reindex.sh (contents, props changed)
Added: user/bugmeister/gnats/tools/reindex.sh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ user/bugmeister/gnats/tools/reindex.sh Tue Feb 19 02:30:17 2013 (r246964)
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+genindex=/usr/local/libexec/gnats/gen-index
+tmpindex=/home/gnats/gnats-adm/!$$!index
+index=/home/gnats/gnats-adm/index
+
+if ${genindex} -n >${tmpindex} ; then
+ mv ${tmpindex} ${index}
+else
+ rm ${tmpindex}
+ echo Failed
+fi
+
More information about the svn-src-user
mailing list