d516e53965
upstream Changes highlights: - GNU v3 license update - Buid now uses automake, and code has been adjusted to compile properly in various environments (tested with gcc 2.95, 3.4, 4.8, 4.9, clang 3.1, 3.4, and several different versions of Linux, FreeBSD, Solaris, OS X) - New --global-databases-file command-line option for gnatsd and other programs - New host/port/user/passwd command-line options for send-pr - Many bugfixes, including: - FreeBSD-SA-05:20.cvsbug security advisory (affected send-pr) - Fixed PR#484: "send-pr --request-id" sends just a template - Fixed PR#501: Safer open/fopen for gen-index (no longer installing as suid) - Fixed PR#504: gnatsd crashes when trying to lock a nonexistent PR - Fixed PR#508: Emacs interface gnats-change-database fails when gnats-port isn't set - Fixed PR#691: Portability problem with sed and tr - Fixed PR#746: install-sid is a bash script (and not /bin/sh) - Fixed PR#767: edit-pr returns incorect exit status - Fixed PR#768: make install DESTDIR=/anywhere fails - Fixed PR#771: "EXPR" queries with spaces sometimes fail - Fixed PR#773: using responsible alias as email address for edit-pr - "invalid query format" bug for queries that included whitespace - edit-pr will now correctly exit with an error if it cannot lock the PR - edit-pr will now use the email alias in the responsibles field - Solaris 7/8/10 compilation fixed
25 lines
746 B
Bash
25 lines
746 B
Bash
$NetBSD: patch-gnats_ds-file_rmcat.sh,v 1.1 2015/04/19 19:35:00 spz Exp $
|
|
|
|
call query-pr with full path
|
|
|
|
--- gnats/ds-file/rmcat.sh.orig 2014-12-28 19:02:36.000000000 +0000
|
|
+++ gnats/ds-file/rmcat.sh
|
|
@@ -28,7 +28,8 @@ if [ $# -eq 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
-GNATS_DB_DIR="`query-pr --print-directory-for-database`"
|
|
+QUERY_PR="xBINDIRx/query-pr"
|
|
+GNATS_DB_DIR="`$QUERY_PR --print-directory-for-database`"
|
|
|
|
if [ ! -d "$GNATS_DB_DIR" ]
|
|
then
|
|
@@ -37,7 +38,7 @@ then
|
|
fi
|
|
|
|
for i in "$@"; do
|
|
- if query-pr --list-categories | grep "^${i}:" >/dev/null 2>&1; then
|
|
+ if $QUERY_PR --list-categories | grep "^${i}:" >/dev/null 2>&1; then
|
|
echo "$prog: category \`$i' is still in the categories file, please remove it."
|
|
continue
|
|
fi
|