Bugzilla – Attachment 101206 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.30 KB, created by
Kyle M Hall (khall)
on 2020-03-20 14:59:04 UTC
(
hide
)
Description:
Bug 24696: Add completion times to updatedatabase
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-03-20 14:59:04 UTC
Size:
2.30 KB
patch
obsolete
>From 6866247427eb8d587ed6e24a89a6b1933f08bddd 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. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 bcb617ffed..d7d900aea8 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -21257,21 +21257,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 %5s - %s", $DBversion, $bug_number, $description; >+ say sprintf "Upgrade to %s done [%s]: Bug %5s - %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 %5s - %s", $DBversion, $bug_number, $description; >+ say sprintf "Upgrade to %s done [%s]: Bug %5s - %s", $DBversion, $time, $bug_number, $description; > } > } > $first = 0; >-- >2.21.1 (Apple Git-122.3)
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