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

(-)mirrorselect-0.83 (-1 / +1 lines)
Lines 306-312 Link Here
306
	# Request/original patch by Bret Towe <btowe@gbis.com>
306
	# Request/original patch by Bret Towe <btowe@gbis.com>
307
	#
307
	#
308
    	if [ "$(grep ${PATTERN} /etc/make.conf)" ] ; then
308
    	if [ "$(grep ${PATTERN} /etc/make.conf)" ] ; then
309
		mv /etc/make.conf /etc/make.conf.old 
309
		cp -p /etc/make.conf /etc/make.conf.old 
310
		sed "s#^[ \#]*${PATTERN}.*#${PATTERN}\"${MIRRORS}\"#" /etc/make.conf.old > /etc/make.conf
310
		sed "s#^[ \#]*${PATTERN}.*#${PATTERN}\"${MIRRORS}\"#" /etc/make.conf.old > /etc/make.conf
311
	else
311
	else
312
		echo "${PATTERN}\"$MIRRORS\"" >> /etc/make.conf
312
		echo "${PATTERN}\"$MIRRORS\"" >> /etc/make.conf

Return to bug 48716