[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#244019: base-installer: Language specific code should be moved to languagechooser



Package: base-installer
Version: 0.067
Severity: minor

The code to check the installation language and install extra packages
into /target/ do not relly belong to base-installer.  It should be
moved to languagechooser instead.  This is the code in question (from
current SVN):

queue_language_debs () {
	# Language specific packages.

	info "Installing language specific packages."

	db_get debian-installer/language || true

	if [ "$RET" != "en" ]; then
		info "Trying to install package iso-codes into /target/."
		# Package iso-codes is missing in Woody.  Do not fail
		# if it is missing to make d-i capable of installing
		# Woody and Skolelinux.
		if apt-install iso-codes ; then
		    :
		else
		    warning "Installing package iso-codes failed."
		fi
	fi

	case "`echo $RET | sed 's/:.*//'`" in
		ja|ko|ko_KR|el|zh|zh_CN|zh_TW|bg|ar|he|tr|uk|uk_UA)
			# Japanese, Korean, Greek, Chinese, Bulgarian, Arabic, Hebrew, Turkish, Ukranian
			apt-install jfbterm || true
			apt-install unifont || true
		;;
		ru)
			# Russian
			apt-install console-cyrillic || true
			apt-install console-terminus || true
		;;
		*)
		;;
	esac
}
	
If this code is moved to languagechooser, the request packages will be
installed when the apt-install queue is processed.



Reply to: