Bug 17666: Revert "Bug 16685 [QA Followup] - Use Path::Tiny::slurp instead of File...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 12 Dec 2016 21:44:59 +0000 (21:44 +0000)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 18 Dec 2016 19:32:04 +0000 (19:32 +0000)
commit5b7119c87d5187f1d45c3ef82597264b2574225d
treeab251d29491528a7335ff2f260d570cf26136caf
parent9af15e2cb487280e3c4b5859a5edb77a0403c09e
Bug 17666: Revert "Bug 16685 [QA Followup] - Use Path::Tiny::slurp instead of File::Slurp"

This reverts commit 7ac1bc35372990520a7c67870b2c702c41bbebcc.

On a kohadevbox:
Error flock (1) on
'/home/vagrant/kohaclone/installer/data/mysql/atomicupdate/bug_xxxx.perl':
No locks available at installer/data/mysql/updatedatabase.pl line 13637.

This is because Path::Tiny->slurp[_utf8] uses flocks which does not work
with NFS

Test plan:
Execute a .perl atomic update file on a kohadevbox
=> Without this patch you should get the flock error
=> With this patch the update should work fine

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit c9e95aa22e56536654305ab32ab1b15a27e89557)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
C4/Installer/PerlDependencies.pm
installer/data/mysql/updatedatabase.pl