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

(-)portage.py (-2 / +2 lines)
Lines 821-831 Link Here
821
821
822
	# Append the contents of each to the version string, stripping ALL whitespace
822
	# Append the contents of each to the version string, stripping ALL whitespace
823
	for lv in localversions:
823
	for lv in localversions:
824
		version += string.join(string.split(string.join(grabfile(lv))), "")
824
		version += string.join(string.split(string.join(grabfile(base_dir+"/"+lv))), "")
825
825
826
	# Check the .config for a CONFIG_LOCALVERSION and append that too, also stripping whitespace
826
	# Check the .config for a CONFIG_LOCALVERSION and append that too, also stripping whitespace
827
	kernelconfig = getconfig(base_dir+"/.config")
827
	kernelconfig = getconfig(base_dir+"/.config")
828
	if kernelconfig.has_key("CONFIG_LOCALVERSION"):
828
	if kernelconfig and kernelconfig.has_key("CONFIG_LOCALVERSION"):
829
		version += string.join(string.split(kernelconfig["CONFIG_LOCALVERSION"]), "")
829
		version += string.join(string.split(kernelconfig["CONFIG_LOCALVERSION"]), "")
830
830
831
	return (version,None)
831
	return (version,None)

Return to bug 67804