Bugzilla – Attachment 75927 Details for
Bug 20727
Replace usage of File::Spec->tmpdir with C4::Context->temporary_directory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20727: Replace use of tmpdir in updatedatabase.pl
Bug-20727-Replace-use-of-tmpdir-in-updatedatabasep.patch (text/plain), 1.20 KB, created by
Jonathan Druart
on 2018-06-08 15:36:54 UTC
(
hide
)
Description:
Bug 20727: Replace use of tmpdir in updatedatabase.pl
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-06-08 15:36:54 UTC
Size:
1.20 KB
patch
obsolete
>From cb3cbe8c0c164e27cd704e71ee0df23f1f89f890 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Tue, 5 Jun 2018 14:48:14 -0400 >Subject: [PATCH] Bug 20727: Replace use of tmpdir in updatedatabase.pl > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/updatedatabase.pl | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index b38db83e40..e8715a0efe 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -46,7 +46,6 @@ use MARC::Record; > use MARC::File::XML ( BinaryEncoding => 'utf8' ); > > use File::Path qw[remove_tree]; # perl core module >-use File::Spec; > use File::Slurp; > > # FIXME - The user might be installing a new database, so can't rely >@@ -11772,7 +11771,7 @@ $dbh->do(q{ > WHERE COALESCE(permanent,0)=0 AND dir='koha_upload' > }); > >-my $tmp= File::Spec->tmpdir.'/koha_upload'; >+my $tmp = C4::Context->temporary_directory . '/koha_upload'; > remove_tree( $tmp ) if -d $tmp; > > print "Upgrade to $DBversion done (Bug 14893 - Separate temporary storage per instance in Upload.pm)\n"; >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20727
:
75200
|
75626
|
75667
|
75668
|
75669
|
75670
|
75833
|
75834
|
75835
|
75923
|
75924
|
75925
|
75926
| 75927 |
75928