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

(-)a/eclass/savedconfig.eclass (-3 / +2 lines)
Lines 139-151 restore_config() { Link Here
139
		treecopy . "${dest}" || die "Failed to restore ${found} to $1"
139
		treecopy . "${dest}" || die "Failed to restore ${found} to $1"
140
		popd > /dev/null
140
		popd > /dev/null
141
	else
141
	else
142
		# maybe the user is screwing around with perms they shouldnt #289168
142
		# maybe the user is screwing around with perms they shouldn't #289168
143
		if [[ ! -r ${base} ]] ; then
143
		if [[ ! -r ${base} ]] ; then
144
			eerror "Unable to read ${base} -- please check its permissions."
144
			eerror "Unable to read ${base} -- please check its permissions."
145
			die "Reading config files failed"
145
			die "Reading config files failed"
146
		fi
146
		fi
147
		ewarn "No saved config to restore - please remove USE=savedconfig or"
147
		ewarn "No saved config to restore - please remove USE=savedconfig or"
148
		ewarn "provide a configuration file in ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/${CATEGORY}/${PN}"
148
		ewarn "provide a configuration file in ${base}/${CATEGORY}/${PN}"
149
		ewarn "Your config file(s) will not be used this time"
149
		ewarn "Your config file(s) will not be used this time"
150
	fi
150
	fi
151
}
151
}
152
- 

Return to bug 575164