Opkman: Fixed bug in package update.

git-svn-id: trunk@54500 -
This commit is contained in:
balazs 2017-03-30 05:03:58 +00:00
parent cdcf32e873
commit 7928345fb3

View File

@ -479,8 +479,14 @@ begin
begin
MS.Position := 0;
SetLength(AJSON, MS.Size);
MS.Read(Pointer(AJSON)^, Length(AJSON));
Result := Length(AJSON) > 0;
{since the class name has changed form "UpdatePackageFiles" to "UpdateLazPackages",
we have to replace the references in the old JSONs(we don't have access to the files, they are
located at the developers update page.}
if Result then
AJSON := StringReplace(AJSON, 'UpdatePackageFiles', 'UpdateLazPackages', [rfReplaceAll, rfIgnoreCase]);
end;
end;
except