Fix http/https confusion on my end
This commit is contained in:
18
pcurse
Normal file → Executable file
18
pcurse
Normal file → Executable file
@@ -23,17 +23,19 @@ foreach my $addon(@{$addons}) {
|
||||
my $version = pcurse::get_product_version($html,$addon->{'uri'},$fileid);
|
||||
print ' - latest version is '.$version;
|
||||
if($version && ($version ne $addon->{'version'})) {
|
||||
print ' - updating';
|
||||
my $ret = pcurse::update($conf->{'baseuri'}.$addon->{'uri'},$fileid,$conf->{'wowpath'});
|
||||
if($ret) {
|
||||
print ' - done';
|
||||
$addon->{'version'} = $version;
|
||||
} else {
|
||||
print ' - failed';
|
||||
unless($opts{'test'}) {
|
||||
print ' - updating';
|
||||
my $ret = pcurse::update($conf->{'baseuri'}.$addon->{'uri'},$fileid,$conf->{'wowpath'});
|
||||
if($ret) {
|
||||
print ' - done';
|
||||
$addon->{'version'} = $version;
|
||||
} else {
|
||||
print ' - failed';
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
print 'Could not find product id for '.$addon->{'name'};
|
||||
print 'Could not find file id for '.$addon->{'name'};
|
||||
}
|
||||
}
|
||||
print "\n";
|
||||
|
||||
Reference in New Issue
Block a user