Browse Source

* Replaced calls to procedures that depend on global variables, which
are not always set

git-svn-id: trunk@35659 -

joost 8 years ago
parent
commit
59cd3891e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/fppkg/src/pkgcommands.pp

+ 2 - 2
packages/fppkg/src/pkgcommands.pp

@@ -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;