@@ -, +, @@ Path::Tiny::slurp instead of File::Slurp" --- C4/Installer/PerlDependencies.pm | 5 ----- installer/data/mysql/updatedatabase.pl | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) --- a/C4/Installer/PerlDependencies.pm +++ a/C4/Installer/PerlDependencies.pm @@ -852,11 +852,6 @@ our $PERL_DEPS = { required => 1, min_ver => '0.28', }, - 'Path::Tiny' => { - usage => 'core', - required => 1, - min_ver => '0.058', - }, }; 1; --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -47,7 +47,7 @@ use MARC::File::XML ( BinaryEncoding => 'utf8' ); use File::Path qw[remove_tree]; # perl core module use File::Spec; -use Path::Tiny; +use File::Slurp; # FIXME - The user might be installing a new database, so can't rely # on /etc/koha.conf anyway. @@ -13720,7 +13720,7 @@ foreach my $file ( sort readdir $dirh ) { my $installer = C4::Installer->new(); my $rv = $installer->load_sql( $update_dir . $file ) ? 0 : 1; } elsif ( $file =~ /\.perl$/ ) { - my $code = path( $update_dir . $file )->slurp_utf8; + my $code = read_file( $update_dir . $file ); eval $code; say "Atomic update generated errors: $@" if $@; } --