summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/l10n.eclass')
-rw-r--r--eclass/l10n.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/l10n.eclass b/eclass/l10n.eclass
index a7a6a26bb65a..0f29d563b294 100644
--- a/eclass/l10n.eclass
+++ b/eclass/l10n.eclass
@@ -86,7 +86,9 @@ l10n_find_plocales_changes() {
current+="${x} "
done
popd >/dev/null
- if [[ ${PLOCALES} != ${current%[[:space:]]} ]] ; then
+ # RHS will be sorted with single spaces so ensure the LHS is too
+ # before attempting to compare them for equality. See bug #513242.
+ if [[ $(tr -s "[:space:]" "\n" <<< "${PLOCALES}" | sort | xargs echo) != ${current%[[:space:]]} ]] ; then
einfo "There are changes in locales! This ebuild should be updated to:"
einfo "PLOCALES=\"${current%[[:space:]]}\""
else