diff options
author | mkanat%bugzilla.org <> | 2007-03-16 21:04:35 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-03-16 21:04:35 +0000 |
commit | 0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1 (patch) | |
tree | b5a1885f59c9f4350a5521d5a88cd58d3eae60dc /Bugzilla/Install/DB.pm | |
parent | ef04d1df992107f61984ee1317caf50b89eccc8d (diff) | |
download | bugs-0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1.tar bugs-0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1.tar.gz bugs-0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1.tar.bz2 bugs-0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1.tar.xz bugs-0ce0e2a279f6f39b6ce5f3b17699f285feca9ba1.zip |
Bug 374215: Move all generally-useful Installation subroutines to Bugzilla::Install::Util
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=mkanat
Diffstat (limited to 'Bugzilla/Install/DB.pm')
-rw-r--r-- | Bugzilla/Install/DB.pm | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/Bugzilla/Install/DB.pm b/Bugzilla/Install/DB.pm index 7d4939877..96bc161ac 100644 --- a/Bugzilla/Install/DB.pm +++ b/Bugzilla/Install/DB.pm @@ -25,6 +25,7 @@ use strict; use Bugzilla::Bug qw(is_open_state); use Bugzilla::Constants; use Bugzilla::Hook; +use Bugzilla::Install::Util qw(indicate_progress); use Bugzilla::Util; use Bugzilla::Series; @@ -32,23 +33,6 @@ use Date::Parse; use Date::Format; use IO::File; -use base qw(Exporter); -our @EXPORT_OK = qw( - indicate_progress -); - -sub indicate_progress { - my ($params) = @_; - my $current = $params->{current}; - my $total = $params->{total}; - my $every = $params->{every} || 1; - - print "." if !($current % $every); - if ($current % ($every * 60) == 0) { - print "$current/$total (" . int($current * 100 / $total) . "%)\n"; - } -} - # NOTE: This is NOT the function for general table updates. See # update_table_definitions for that. This is only for the fielddefs table. sub update_fielddefs_definition { @@ -2794,18 +2778,4 @@ Params: none Returns: nothing -=item C<indicate_progress({ total => $total, current => $count, every => 1 })> - -Description: This prints out lines of dots as a long update is going on, - to let the user know where we are and that we're not frozen. - A new line of dots will start every 60 dots. - -Params: C<total> - The total number of items we're processing. - C<current> - The number of the current item we're processing. - C<every> - How often the function should print out a dot. - For example, if this is 10, the function will print out - a dot every ten items. - -Returns: nothing - =back |