Bugzilla – Attachment 100162 Details for
Bug 24131
Improved formatting for output of updatedatabase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24131: Handle several descriptions
Bug-24131-Handle-several-descriptions.patch (text/plain), 1.92 KB, created by
Bernardo Gonzalez Kriegel
on 2020-03-05 01:18:12 UTC
(
hide
)
Description:
Bug 24131: Handle several descriptions
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-03-05 01:18:12 UTC
Size:
1.92 KB
patch
obsolete
>From cdf2e539fdf3cff2f67c4f66e1d7d919cf2a8ba1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Feb 2020 13:28:15 +0100 >Subject: [PATCH] Bug 24131: Handle several descriptions > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > installer/data/mysql/updatedatabase.pl | 21 ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index 78b7eda298..d77cac25a5 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -21105,16 +21105,31 @@ sub SetVersion { > > sub NewVersion { > my ( $DBversion, $bug_number, $descriptions ) = @_; >+ > SetVersion($DBversion); >+ > unless ( ref($descriptions) ) { > $descriptions = [ $descriptions ]; > } >+ my $first = 1; > for my $description ( @$descriptions ) { >- unless ( $bug_number ) { >- say sprintf "Upgrade to %s done (%s)", $DBversion, $description; >+ if ( @$descriptions > 1 ) { >+ if ( $first ) { >+ unless ( $bug_number ) { >+ say sprintf "Upgrade to %s done: %s", $DBversion, $description >+ } else { >+ say sprintf "Upgrade to %s done: Bug %s - %s", $DBversion, $bug_number, $description; >+ } >+ } >+ say sprintf "\t\t\t\t\t- %s", $description > } else { >- say sprintf "Upgrade to %s done (Bug %s - %s)", $DBversion, $bug_number, $description; >+ unless ( $bug_number ) { >+ say sprintf "Upgrade to %s done: %s", $DBversion, $description; >+ } else { >+ say sprintf "Upgrade to %s done: Bug %s - %s", $DBversion, $bug_number, $description; >+ } > } >+ $first = 0; > } > } > >-- >2.17.1
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 24131
:
98536
|
98537
|
99315
|
99316
|
99317
|
99521
|
99522
|
99523
|
99524
|
100161
|
100162
|
100163
|
100164
|
100464
|
100465
|
100466
|
100467
|
100468
|
100530
|
100531
|
100532
|
100533
|
100534
|
100535
|
100536
|
100538
|
101155
|
101159
|
101160
|
101162
|
101164
|
101166
|
101168
|
101187
|
103001