From cd9cf6add14c1d76c571eeb99331631d74d209d9 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 30 Jul 2006 09:46:43 +0000 Subject: Bug 346414: Move the creation/maintenance of the data/ directory out of checksetup and into a module Patch By Max Kanat-Alexander (module owner) a=justdave --- Bugzilla/DB.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB.pm') diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm index b268a12f3..2706f1b40 100644 --- a/Bugzilla/DB.pm +++ b/Bugzilla/DB.pm @@ -149,7 +149,10 @@ EOT # We don't try to connect to the actual database if $db_check is # disabled. - return unless $db_check; + unless ($db_check) { + print "\n" if $output; + return; + } # And now check the version of the database server itself. my $dbh = _get_no_db_connection(); @@ -173,6 +176,8 @@ newer version. EOT exit; } + + print "\n" if $output; } # Note that this function requires that localconfig exist and @@ -184,7 +189,7 @@ sub bz_create_database { if (!$conn_success) { $dbh = _get_no_db_connection(); - print "\nCreating database $db_name...\n"; + print "Creating database $db_name...\n"; # Try to create the DB, and if we fail print a friendly error. if (!eval { $dbh->do("CREATE DATABASE $db_name") }) { -- cgit v1.2.3-24-g4f1b