Blame SOURCES/texinfo-6.5-fix-info-dir.patch

390367
This fixes two issues:
390367
390367
https://bugzilla.redhat.com/show_bug.cgi?id=1592433
390367
This is a bug in fix-info-dir --delete
390367
(Hunk 3)
390367
390367
https://bugzilla.redhat.com/show_bug.cgi?id=1614162
390367
This is a weird infinite loop that happens when fix-info-dir is run with stderr
390367
redirected to /dev/null while /dev/null doesn't exist (or isn't a device)
390367
(Hunks 1 and 2)
390367
390367
diff --git a/contrib/fix-info-dir b/contrib/fix-info-dir
390367
index 4439ada..9240060 100755
390367
--- a/contrib/fix-info-dir
390367
+++ b/contrib/fix-info-dir
390367
@@ -124,6 +124,7 @@ if test "$CREATE_NODE"; then
390367
 		fi
390367
 		shift
390367
 	else
390367
+		SKIP_READ=yes
390367
 		SKELETON=/dev/null
390367
 
390367
 	fi
390367
@@ -188,7 +189,7 @@ DIR_FILE_END_OF_FILE
390367
 
390367
 	# Read one line from the file.  This is so that we can echo lines with
390367
 	# whitespace and quoted characters in them.
390367
-	while read fileline; do
390367
+	while test -z "$SKIP_READ" && read fileline; do
390367
 		# flag fancy features
390367
 		if test ! -z "$echoline"; then        # echo line
390367
 			echo "$fileline"
390367
@@ -294,7 +295,7 @@ else
390367
 	DONE_MSG="total invalid menu item(s) were removed from `pwd`/$DIR_FILE"
390367
 	for Info_Name in `comm -23 $TMP_FILE1 $TMP_FILE2`; do
390367
 		Changed="y"
390367
-		if install-info --remove $Info_Name $DIR_FILE; then
390367
+		if install-info --remove --remove-exactly $Info_Name $DIR_FILE; then
390367
 			Total=`expr "$Total" + "1"`
390367
 		fi
390367
 	done