Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 21412
Collapse All | Expand All

(-)etc-update.orig (-24 / +25 lines)
Lines 332-365 Link Here
332
				echo
332
				echo
333
			fi
333
			fi
334
			echo -n "File: ${file}
334
			echo -n "File: ${file}
335
1) Replace original with update
335
r) Replace original with update
336
2) Delete update, keeping original as is
336
d) Delete update, keeping original as is
337
3) Interactively merge original with update
337
m) Interactively merge original with update
338
4) Show differences again
338
s) Show differences again
339
Please select from the menu above (-1 to ignore this update): "
339
i) Ignore this update
340
Please select from the menu above: "
340
			my_input=$(read_int)
341
			my_input=$(read_int)
341
		fi
342
		fi
342
343
343
		case ${my_input} in
344
		case ${my_input} in
344
			1) echo "Replacing ${ofile} with ${file}"
345
			r|R) echo "Replacing ${ofile} with ${file}"
345
			   mv ${mv_opts} ${file} ${ofile}
346
			     mv ${mv_opts} ${file} ${ofile}
346
			   [ -n "${OVERWRITE_ALL}" ] && my_input=-1
347
			     [ -n "${OVERWRITE_ALL}" ] && my_input=-1
347
			   continue
348
			     continue
348
			   ;;
349
			     ;;
349
			2) echo "Deleting ${file}"
350
			d|D) echo "Deleting ${file}"
350
			   rm ${rm_opts} ${file}
351
			     rm ${rm_opts} ${file}
351
			   [ -n "${DELETE_ALL}" ] && my_input=-1
352
			     [ -n "${DELETE_ALL}" ] && my_input=-1
352
			   continue
353
			     continue
353
			   ;;
354
			     ;;
354
			3) do_merge "${file}" "${ofile}"
355
			m|M) do_merge "${file}" "${ofile}"
355
			   my_input=${?}
356
			     my_input=${?}
356
#			   [ ${my_input} == 255 ] && my_input=-1
357
#			     [ ${my_input} == 255 ] && my_input=-1
357
			   continue
358
			     continue
358
			   ;;
359
			     ;;
359
			4) continue
360
			s|S) continue
360
			   ;;
361
			     ;;
361
			*) continue
362
			  *) continue
362
			   ;;
363
			     ;;
363
		esac
364
		esac
364
	done
365
	done
365
}
366
}

Return to bug 21412