diff options
author | mkanat%bugzilla.org <> | 2006-07-30 11:46:43 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-07-30 11:46:43 +0200 |
commit | cd9cf6add14c1d76c571eeb99331631d74d209d9 (patch) | |
tree | 02cb51c53a3c6a0a74eec63b4f487fce3db31d8f /Bugzilla/DB.pm | |
parent | 856d2d2fcf391a48bc50054e383ba8de617b4c2f (diff) | |
download | bugzilla-cd9cf6add14c1d76c571eeb99331631d74d209d9.tar.gz bugzilla-cd9cf6add14c1d76c571eeb99331631d74d209d9.tar.xz |
Bug 346414: Move the creation/maintenance of the data/ directory out of checksetup and into a module
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> (module owner) a=justdave
Diffstat (limited to 'Bugzilla/DB.pm')
-rw-r--r-- | Bugzilla/DB.pm | 9 |
1 files changed, 7 insertions, 2 deletions
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") }) { |