mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-01 22:57:29 +02:00
Opkman: Fixed bug in package update.
git-svn-id: trunk@54500 -
This commit is contained in:
parent
cdcf32e873
commit
7928345fb3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user