Bugzilla – Attachment 99736 Details for
Bug 24696
We should output completion times in the updatedatabase output.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24696: Add completion times to updatedatabase
Bug-24696-Add-completion-times-to-updatedatabase.patch (text/plain), 2.22 KB, created by
Bernardo Gonzalez Kriegel
on 2020-02-28 01:08:35 UTC
(
hide
)
Description:
Bug 24696: Add completion times to updatedatabase
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2020-02-28 01:08:35 UTC
Size:
2.22 KB
patch
obsolete
>From eedd4afd8ad06b56d9375f350a3c1238aa947426 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 20 Feb 2020 14:30:29 +0000 >Subject: [PATCH] Bug 24696: Add completion times to updatedatabase > >This patch adds completion times to the print statements in >updateadatabase.pl. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Tested on top of Bug 24131 >Work Ok, no errors. >--- > installer/data/mysql/updatedatabase.pl | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index bf627b766c..3e835ea4d6 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -21018,21 +21018,23 @@ sub NewVersion { > $descriptions = [ $descriptions ]; > } > my $first = 1; >+ my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); >+ my $time = sprintf ( "%02d:%02d:%02d", $hour,$min,$sec); > for my $description ( @$descriptions ) { > if ( @$descriptions > 1 ) { > if ( $first ) { > unless ( $bug_number ) { >- say sprintf "Upgrade to %s done: %s", $DBversion, $description >+ say sprintf "Upgrade to %s done [%s]: %s", $DBversion, $time, $description; > } else { >- say sprintf "Upgrade to %s done: Bug %s - %s", $DBversion, $bug_number, $description; >+ say sprintf "Upgrade to %s done [%s]: Bug %s - %s", $DBversion, $time, $bug_number, $description; > } > } >- say sprintf "\t\t\t\t\t- %s", $description >+ say sprintf "\t\t\t\t\t- %s", $description; > } else { > unless ( $bug_number ) { >- say sprintf "Upgrade to %s done: %s", $DBversion, $description; >+ say sprintf "Upgrade to %s done [%s]: %s", $DBversion, $time, $description; > } else { >- say sprintf "Upgrade to %s done: Bug %s - %s", $DBversion, $bug_number, $description; >+ say sprintf "Upgrade to %s done [%s]: Bug %s - %s", $DBversion, $time, $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 24696
:
99318
|
99525
|
99529
|
99736
|
99737
|
100540
|
100541
|
101206
|
101207