[Koha-bugs] [Bug 32356] xx-XX installer dir /kohadevbox/koha/installer/data/mysql/xx-XX already exists.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 9 11:34:43 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32356

--- Comment #20 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
I really don't understand why this has not been pushed already.

(In reply to Jonathan Druart from comment #13)
> It's not consistent to skip installer if the lang directory exist, and not
> doing it in other LangInstaller::install_* subroutines (install_prefs,
> install_tmpl, install_messages) anyway.

It's obvious what's happening here, the files are not updated when they exist
already, we skip the "installer" task!

To recreate:
- fr-FR and es-ES not installed
% perl translate install fr-FR
% grep -r Maybe ../../installer/data/mysql/fr-FR/
=> There is not occurrence of "Maybe" in fr-FR!
# Add it:
% vim $SYNC_REPO/installer/data/mysql/en/mandatory/auth_values.yml
Add a new entry
  38         - category: "YES_NO"
  39           authorised_value: "1"
  40           lib: "Maybe"
  41           lib_opac: "Maybe"

% perl translate install es-ES
% grep -r Maybe ../../installer/data/mysql/es-ES
../../installer/data/mysql/es-ES/mandatory/auth_values.yml:      lib: Maybe
../../installer/data/mysql/es-ES/mandatory/auth_values.yml:      lib_opac:
Maybe

=> OK!

% perl translate install fr-FR
% grep -r Maybe ../../installer/data/mysql/fr-FR/
=> KO, It's not updated!

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list