[packages] If locale is empty, pretend it is 'en'.

- Otherwise packages like vi-$LOCALE will be retained in the
   package list, which will cause install problems.
This commit is contained in:
Adriaan de Groot 2018-04-03 08:02:16 -04:00
parent 32a1c84935
commit 9cdb6734bf

View File

@ -318,7 +318,10 @@ def subst_locale(plist):
"""
locale = libcalamares.globalstorage.value("locale")
if not locale:
return plist
# It is possible to skip the locale-setting entirely.
# Then pretend it is "en", so that {LOCALE}-decorated
# package names are removed from the list.
locale = "en"
ret = []
for packagedata in plist: