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:
2
pcurse
2
pcurse
@ -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'});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user