https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36730
Bug ID: 36730
Summary: (Bug 35428 follow-up) po files (sometimes) fail to
update
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: translate.koha-community.org
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Depends on: 35428
Under some circumstances (e.g. non-standard disk latency) po files fail to be
generated. The output from the gulp po:update --lang xx-XX task is than like
this:
[10:01:39] 'po_update_staff' errored after 6.41 s
[10:01:39] Error: ENOENT: no such file or directory, open
'/tmp/koha-5WCc9s/Koha-staff-prog.pot'
This is due to the time dependencies inside the function flush (callback) (in
the function xgettext) in gulpfile.js. It happens that the /tmp/koha-NNNNNN
folder gets deleted before the asynchronous callback function called by
fs.readFile is completed. The callback should copy the content of the .pot
file from /tmp/koha- to its final destination, while, in parallel in fact, the
folder inside /tmp is being removed. This creates a race condition.
A patch proposal will follow.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35428
[Bug 35428] gulp po tasks do not clean temporary files
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/