summaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-03-13 16:36:54 +0000
committerdes <des@FreeBSD.org>2002-03-13 16:36:54 +0000
commitfe8db81cc554155bdef70ff24adb2d8ec94ad918 (patch)
treef5d53101c6c9973b94385d666fc35bee2b0f7246 /databases
parent5ea184a1045f8ba60a9dac34158eb0d7003f5097 (diff)
downloadFreeBSD-ports-fe8db81cc554155bdef70ff24adb2d8ec94ad918.zip
FreeBSD-ports-fe8db81cc554155bdef70ff24adb2d8ec94ad918.tar.gz
Do not ignore return code from 'pr-edit --lock'.
Diffstat (limited to 'databases')
-rw-r--r--databases/gnats/files/patch-ad20
1 files changed, 20 insertions, 0 deletions
diff --git a/databases/gnats/files/patch-ad b/databases/gnats/files/patch-ad
new file mode 100644
index 0000000..5cfe984
--- /dev/null
+++ b/databases/gnats/files/patch-ad
@@ -0,0 +1,20 @@
+--- gnats/gnats-edit-pr.sh.orig Wed Mar 13 17:19:09 2002
++++ gnats/gnats-edit-pr.sh Wed Mar 13 17:21:14 2002
+@@ -178,13 +178,11 @@
+
+ # lock the pr
+ $debug_print "Locking $pr_id."
+-lock=`$PR_EDIT --lock=$full_me $pr_id 2>&1 > $new`
+-locked=t
+-
+-if [ "$lock" != "" ] ; then
+- echo $lock
+- exit 0
++if ! $PR_EDIT --lock=$full_me $pr_id >$new ; then
++ echo "Failed to lock PR $pr_id"
++ exit 1
+ fi
++locked=t
+
+ # here's where we actually call the editor.
+ cp $new $new.old
OpenPOWER on IntegriCloud