Bugzilla – Attachment 41778 Details for
Bug 14705
Allow .pl too in atomicupdate
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14705: Allow .pl too in atomicupdate
Bug-14705-Allow-pl-too-in-atomicupdate.patch (text/plain), 1.43 KB, created by
Marcel de Rooy
on 2015-08-21 11:31:14 UTC
(
hide
)
Description:
Bug 14705: Allow .pl too in atomicupdate
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2015-08-21 11:31:14 UTC
Size:
1.43 KB
patch
obsolete
>From 29a5a96ad6601552dd0f436e7254db000cf89b04 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 21 Aug 2015 13:25:02 +0200 >Subject: [PATCH] Bug 14705: Allow .pl too in atomicupdate >Content-Type: text/plain; charset=utf-8 > >Bug 13893 added perl files with the extension .perl. >In practice you always tend to add a .pl file. >I suggest to add it. > >Test plan: >[1] Add a .pl file in atomicupdate. >[2] Try the update step in webinstaller. >--- > installer/data/mysql/updatedatabase.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 10809a1..adc3b18 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -10768,12 +10768,12 @@ if ( CheckVersion($DBversion) ) { > my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/'; > opendir( my $dirh, $update_dir ); > foreach my $file ( sort readdir $dirh ) { >- next if $file !~ /\.(sql|perl)$/; #skip other files >+ next if $file !~ /\.(sql|pl|perl)$/; #skip other files > print "DEV atomic update: $file\n"; > if ( $file =~ /\.sql$/ ) { > my $installer = C4::Installer->new(); > my $rv = $installer->load_sql( $update_dir . $file ) ? 0 : 1; >- } elsif ( $file =~ /\.perl$/ ) { >+ } elsif ( $file =~ /\.p(er)?l$/ ) { > do $update_dir . $file; > } > } >-- >1.7.10.4
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 14705
:
41777
| 41778