diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-03-13 16:36:54 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2002-03-13 16:36:54 +0000 |
commit | 4bea60e9a86df24ebb70cc302608896a867839e9 (patch) | |
tree | f31153ddbbc1edc79df3a9491b02cad4c4baa2a3 /databases | |
parent | 43a77a5f41a707ef1a75fb4dbdc5c1265de38feb (diff) |
Notes
Diffstat (limited to 'databases')
-rw-r--r-- | databases/gnats/files/patch-ad | 20 |
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 000000000000..5cfe9847b8dc --- /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 |