Update the rest of the modules to use the updated version_check

This commit is contained in:
Brian Fraser
2012-08-27 22:30:48 -03:00
parent 98338b6508
commit 6eee6ac6f6
17 changed files with 83 additions and 36 deletions

View File

@@ -7187,10 +7187,11 @@ sub main {
# #########################################################################
# Try to connect to MySQL.
# #########################################################################
my $dbh;
my ($dbh, $dsn);
eval {
$dsn = $dp->parse_options($o);
$dbh = get_cxn(
dsn => $dp->parse_options($o),
dsn => $dsn,
%common_modules
);
};
@@ -7460,7 +7461,10 @@ sub main {
# Do the version-check
# ########################################################################
if ( $o->get('version-check') && (!$o->has('quiet') || !$o->get('quiet')) ) {
Pingback::version_check($dbh);
Pingback::version_check(
($review_dbh ? { dbh => $review_dbh, dsn => $review_dsn } : ()),
($dbh ? { dbh => $dbh, dsn => $dsn } : ()),
);
}
# #########################################################################