Minor update to --version-check: Let the user know if there were no suggestions

This commit is contained in:
Brian Fraser
2012-09-24 16:24:11 -03:00
parent ad78b5caa5
commit 484fcb6a2f
19 changed files with 76 additions and 38 deletions

View File

@@ -4124,8 +4124,10 @@ sub version_check {
print "# Percona suggests these upgrades:\n";
print join("\n", map { "# * $_" } @$advice), "\n\n";
}
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
_d('--version-check worked, but there were no suggestions');
else {
print "# No suggestions at this time.\n\n";
($ENV{PTVCDEBUG} || PTDEBUG )
&& _d('--version-check worked, but there were no suggestions');
}
};
if ( $EVAL_ERROR ) {