mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 21:19:59 +00:00
Minor update to --version-check: Let the user know if there were no suggestions
This commit is contained in:
@@ -4684,8 +4684,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -3799,8 +3799,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -3243,8 +3243,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -4354,8 +4354,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -4200,8 +4200,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -3040,8 +3040,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -2947,8 +2947,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -4124,8 +4124,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -5706,8 +5706,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -5715,8 +5715,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -6737,8 +6737,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -6891,8 +6891,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -12740,8 +12740,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -3356,8 +3356,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -3979,8 +3979,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -905,8 +905,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -11181,8 +11181,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -4268,8 +4268,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
@@ -97,8 +97,10 @@ sub version_check {
|
|||||||
print "# Percona suggests these upgrades:\n";
|
print "# Percona suggests these upgrades:\n";
|
||||||
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
print join("\n", map { "# * $_" } @$advice), "\n\n";
|
||||||
}
|
}
|
||||||
elsif ( $ENV{PTVCDEBUG} || PTDEBUG ) {
|
else {
|
||||||
_d('--version-check worked, but there were no suggestions');
|
print "# No suggestions at this time.\n\n";
|
||||||
|
($ENV{PTVCDEBUG} || PTDEBUG )
|
||||||
|
&& _d('--version-check worked, but there were no suggestions');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ( $EVAL_ERROR ) {
|
if ( $EVAL_ERROR ) {
|
||||||
|
Reference in New Issue
Block a user