mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Do not ignore return code from 'pr-edit --lock'.
This commit is contained in:
parent
43a77a5f41
commit
4bea60e9a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56013
1 changed files with 20 additions and 0 deletions
20
databases/gnats/files/patch-ad
Normal file
20
databases/gnats/files/patch-ad
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue