Fixed brainfart, setting the updated version before printing it, will indeed update the value first.. Moving it after printing it, will actually show the version we're upgrading from..

This commit is contained in:
2019-08-26 01:16:42 +02:00
parent 1b8248be9e
commit b63c0f9645

2
pcurse
View File

@ -123,8 +123,8 @@ foreach my $unpacking(keys %tounpack) {
my $version = $tounpack{$unpacking}->[2];
if(pcurse::update($unpacking,$file,$conf->{'wowpath'})) {
say 'Updated '.$addons->[$id]->{'name'}.': '.$addons->[$id]->{'version'}.' => '.$version;
$addons->[$id]->{'version'} = $version;
my $ret = pcurse::updatelog($addons->[$id]->{'name'},$addons->[$id]->{'version'},$version);
$addons->[$id]->{'version'} = $version;
if($ret->{'retval'} == 0) {
push(@errors, $ret->{'message'});
}