Handle undefined previous version when installing.

$OptUpdate is undefined when not upgrading, so don't
prepare an upgrade notice to avoid calling an
undefined variable.

Signed-off-by: Thomas Hochstein <thh@inter.net>
This commit is contained in:
Thomas Hochstein 2011-01-12 16:39:10 +01:00
parent 1c3adb8de2
commit da6fc073ee

View file

@ -134,7 +134,9 @@ Enjoy!
-thh <thh\@inter.net> -thh <thh\@inter.net>
INSTALL INSTALL
my $Upgrade = <<UPGRADE; my $Upgrade ='';
if ($OptUpdate) {
$Upgrade = <<UPGRADE;
---------- ----------
Your installation was upgraded from $OptUpdate to $PackageVersion. Your installation was upgraded from $OptUpdate to $PackageVersion.
@ -144,6 +146,7 @@ Don't forget to restart your INN feed so that it can pick up the new version:
(or whatever you called your feed). (or whatever you called your feed).
UPGRADE UPGRADE
}
##### --------------------------- End of definitions --------------------------- ##### --------------------------- End of definitions ---------------------------