Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107251815
D37703.id118151.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
815 B
Referenced Files
None
Subscribers
None
D37703.id118151.diff
View Options
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -2543,8 +2543,21 @@
Press Enter to edit this file in ${EDITOR} and resolve the conflicts
manually...
EOF
- read dummy </dev/tty
- ${EDITOR} `pwd`/merge/new/${F} < /dev/tty
+ while true; do
+ read dummy </dev/tty
+ ${EDITOR} `pwd`/merge/new/${F} < /dev/tty
+
+ if ! egrep -q '^(<<<<<<<|=======|>>>>>>>)([[:space:]].*)?$' $(pwd)/merge/new/${F} ; then
+ break
+ fi
+ cat <<-EOF
+
+Merge conflict markers remain in: ${F}
+These must be resolved for the system to be functional.
+
+Press Enter to return to editing this file.
+ EOF
+ done
done < failed.merges
rm failed.merges
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 6:49 PM (20 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15770962
Default Alt Text
D37703.id118151.diff (815 B)
Attached To
Mode
D37703: freebsd-update: re-edit files if merge conflict markers remain
Attached
Detach File
Event Timeline
Log In to Comment