* Replaced calls to procedures that depend on global variables, which

are not always set

git-svn-id: trunk@35659 -
This commit is contained in:
joost 2017-03-25 20:27:00 +00:00
parent 88e31dc8c3
commit 59cd3891e1

View File

@ -251,7 +251,7 @@ begin
begin
Log(llCommands,SLogDownloading,[PackageManager.Options.GlobalSection.RemoteMirrorsURL,PackageManager.Options.GlobalSection.LocalMirrorsFile]);
DownloadFile(PackageManager.Options.GlobalSection.RemoteMirrorsURL,PackageManager.Options.GlobalSection.LocalMirrorsFile, PackageManager);
LoadLocalAvailableMirrors;
PackageManager.LoadLocalAvailableMirrors;
end;
// Download packages.xml
PackagesURL:=PackageManager.GetRemoteRepositoryURL(PackagesFileName);
@ -260,7 +260,7 @@ begin
// Read the repository again
PackageManager.ScanAvailablePackages;
// no need to log errors again
FindInstalledPackages(PackageManager.CompilerOptions,False);
PackageManager.ScanPackages;
end;