Browse Source

* Patch from Darius to fix 19348

git-svn-id: trunk@17440 -
michael 14 years ago
parent
commit
94cc1eef04

+ 6 - 0
utils/fppkg/fprepos.pp

@@ -111,9 +111,11 @@ type
   TFPPackage = Class(TStreamCollectionItem)
   TFPPackage = Class(TStreamCollectionItem)
   private
   private
     FAuthor: String;
     FAuthor: String;
+    FCategory: String;
     FDescription: String;
     FDescription: String;
     FEmail: String;
     FEmail: String;
     FFPMakeOptionsString: string;
     FFPMakeOptionsString: string;
+    FKeywords: String;
     FRecompileBroken: boolean;
     FRecompileBroken: boolean;
     FSourcePath: string;
     FSourcePath: string;
     FInstalledLocally: boolean;
     FInstalledLocally: boolean;
@@ -123,6 +125,7 @@ type
     FHomepageURL: String;
     FHomepageURL: String;
     FDownloadURL: String;
     FDownloadURL: String;
     FFileName: String;
     FFileName: String;
+    FSupport: String;
     FUnusedVersion: TFPVersion;
     FUnusedVersion: TFPVersion;
     FVersion: TFPVersion;
     FVersion: TFPVersion;
     FDependencies : TFPDependencies;
     FDependencies : TFPDependencies;
@@ -153,6 +156,9 @@ type
     Property Version : TFPVersion Read FVersion Write SetVersion;
     Property Version : TFPVersion Read FVersion Write SetVersion;
     Property License : String Read FLicense Write FLicense;
     Property License : String Read FLicense Write FLicense;
     Property Description : String Read FDescription Write FDescription;
     Property Description : String Read FDescription Write FDescription;
+    Property Support : String Read FSupport Write FSupport;
+    Property Keywords : String Read FKeywords Write FKeywords;
+    Property Category : String Read FCategory Write FCategory;
     Property HomepageURL : String Read FHomepageURL Write FHomepageURL;
     Property HomepageURL : String Read FHomepageURL Write FHomepageURL;
     Property DownloadURL : String Read FDownloadURL Write FDownloadURL;
     Property DownloadURL : String Read FDownloadURL Write FDownloadURL;
     Property FileName : String Read GetFileName Write FFileName;
     Property FileName : String Read GetFileName Write FFileName;

+ 1 - 1
utils/fppkg/pkgdownload.pp

@@ -169,7 +169,7 @@ begin
   with DownloaderClass.Create(nil) do
   with DownloaderClass.Create(nil) do
     try
     try
       Log(vlCommands,SLogDownloading,[PackageRemoteArchive(P),PackageLocalArchive(P)]);
       Log(vlCommands,SLogDownloading,[PackageRemoteArchive(P),PackageLocalArchive(P)]);
-      pkgglobals.Log(vlProgres,SProgrDownloadPackage,[P.Name, P.Version.AsString]);
+      pkgglobals.log(vlProgres,SProgrDownloadPackage,[P.Name, P.Version.AsString]);
       Download(PackageRemoteArchive(P),PackageLocalArchive(P));
       Download(PackageRemoteArchive(P),PackageLocalArchive(P));
     finally
     finally
       Free;
       Free;

+ 31 - 17
utils/fppkg/pkgglobals.pp

@@ -54,6 +54,7 @@ Const
 Type
 Type
   TLogLevel = (vlError,vlWarning,vlInfo,vlCommands,vlDebug,vlProgres);
   TLogLevel = (vlError,vlWarning,vlInfo,vlCommands,vlDebug,vlProgres);
   TLogLevels = Set of TLogLevel;
   TLogLevels = Set of TLogLevel;
+  TLogProc = procedure(Level:TLogLevel;Const Msg: String);
 
 
 const
 const
   DefaultLogLevels = [vlError,vlWarning, vlProgres];
   DefaultLogLevels = [vlError,vlWarning, vlProgres];
@@ -61,14 +62,15 @@ const
 
 
 type
 type
   EPackagerError = class(Exception);
   EPackagerError = class(Exception);
+  TPkgErrorProc = Procedure(Const Msg : String);
 
 
 // Logging
 // Logging
 Function StringToLogLevels (S : String) : TLogLevels;
 Function StringToLogLevels (S : String) : TLogLevels;
 Function LogLevelsToString (V : TLogLevels): String;
 Function LogLevelsToString (V : TLogLevels): String;
-Procedure Log(Level: TLogLevel;Msg : String);
-Procedure Log(Level: TLogLevel;Fmt : String; const Args : array of const);
-Procedure Error(Msg : String);
-Procedure Error(Fmt : String; const Args : array of const);
+Procedure log(Level:TLogLevel; Const Fmt:String; const Args:array of const);
+Procedure log(Level:TLogLevel; Const Msg:String);
+Procedure Error(Const Fmt : String; const Args : array of const);
+Procedure Error(Const Msg : String);
 
 
 // Utils
 // Utils
 function maybequoted(const s:string):string;
 function maybequoted(const s:string):string;
@@ -85,7 +87,8 @@ function IsSuperUser:boolean;
 var
 var
   LogLevels : TLogLevels;
   LogLevels : TLogLevels;
   FPMKUnitDeps : array of TFPMKUnitDep;
   FPMKUnitDeps : array of TFPMKUnitDep;
-
+  LogHandler: TLogProc;
+  ErrorHandler: TPkgErrorProc;
 
 
 Implementation
 Implementation
 
 
@@ -142,7 +145,7 @@ begin
 end;
 end;
 
 
 
 
-procedure Log(Level:TLogLevel;Msg: String);
+procedure LogCmd(Level:TLogLevel; Const Msg: String);
 var
 var
   Prefix : string;
   Prefix : string;
 begin
 begin
@@ -165,21 +168,30 @@ begin
 end;
 end;
 
 
 
 
-Procedure Log(Level:TLogLevel; Fmt:String; const Args:array of const);
+procedure ErrorCmd(Const Msg: String);
 begin
 begin
-  Log(Level,Format(Fmt,Args));
+  Raise EPackagerError.Create(Msg);
 end;
 end;
 
 
 
 
-procedure Error(Msg: String);
+Procedure log(Level:TLogLevel; Const Msg : String);
 begin
 begin
-  Raise EPackagerError.Create(Msg);
+  Loghandler(level,Msg)
+end;
+
+Procedure log(Level:TLogLevel; Const Fmt:String; const Args:array of const);
+begin
+  LogHandler(Level,Format(Fmt,Args));
 end;
 end;
 
 
+Procedure Error(Const Msg : String);
+begin
+  ErrorHandler(Msg)
+end;
 
 
-procedure Error(Fmt: String; const Args: array of const);
+procedure Error(Const Fmt: String; const Args: array of const);
 begin
 begin
-  Raise EPackagerError.CreateFmt(Fmt,Args);
+  ErrorHandler(Format(Fmt, Args));
 end;
 end;
 
 
 
 
@@ -240,9 +252,9 @@ Function DirectoryExistsLog(const ADir:string):Boolean;
 begin
 begin
   result:=SysUtils.DirectoryExists(ADir);
   result:=SysUtils.DirectoryExists(ADir);
   if result then
   if result then
-    Log(vlDebug,SDbgDirectoryExists,[ADir,SDbgFound])
+    log(vlDebug,SDbgDirectoryExists,[ADir,SDbgFound])
   else
   else
-    Log(vlDebug,SDbgDirectoryExists,[ADir,SDbgNotFound]);
+    log(vlDebug,SDbgDirectoryExists,[ADir,SDbgNotFound]);
 end;
 end;
 
 
 
 
@@ -250,9 +262,9 @@ Function FileExistsLog(const AFileName:string):Boolean;
 begin
 begin
   result:=SysUtils.FileExists(AFileName);
   result:=SysUtils.FileExists(AFileName);
   if result then
   if result then
-    Log(vlDebug,SDbgFileExists,[AFileName,SDbgFound])
+    log(vlDebug,SDbgFileExists,[AFileName,SDbgFound])
   else
   else
-    Log(vlDebug,SDbgFileExists,[AFileName,SDbgNotFound]);
+    log(vlDebug,SDbgFileExists,[AFileName,SDbgNotFound]);
 end;
 end;
 
 
 
 
@@ -261,7 +273,7 @@ Var
   BFN : String;
   BFN : String;
 begin
 begin
   BFN:=AFileName+'.bak';
   BFN:=AFileName+'.bak';
-  Log(vlDebug,SDbgBackupFile,[BFN]);
+  log(vlDebug,SDbgBackupFile,[BFN]);
   If not RenameFile(AFileName,BFN) then
   If not RenameFile(AFileName,BFN) then
     Error(SErrBackupFailed,[AFileName,BFN]);
     Error(SErrBackupFailed,[AFileName,BFN]);
 end;
 end;
@@ -384,5 +396,7 @@ end;
 initialization
 initialization
   OnGetVendorName:=@FPPkgGetVendorName;
   OnGetVendorName:=@FPPkgGetVendorName;
   OnGetApplicationName:=@FPPkgGetApplicationName;
   OnGetApplicationName:=@FPPkgGetApplicationName;
+  LogHandler := @LogCmd;
+  ErrorHandler := @ErrorCmd;
 
 
 end.
 end.

+ 5 - 2
utils/fppkg/pkghandler.pp

@@ -90,7 +90,10 @@ begin
       Log(vlDebug,'Already executed or executing action '+FullActionName);
       Log(vlDebug,'Already executed or executing action '+FullActionName);
       exit;
       exit;
     end;
     end;
-  ExecutedActions.Add(FullActionName,Pointer(PtrUInt(1)));
+
+  if AAction <> 'laz_list' then    //do not cache list action
+    ExecutedActions.Add(FullActionName,Pointer(PtrUInt(1)));
+
   // Create action handler class
   // Create action handler class
   pkghandlerclass:=GetPkgHandler(AAction);
   pkghandlerclass:=GetPkgHandler(AAction);
   With pkghandlerclass.Create(nil,APackageName) do
   With pkghandlerclass.Create(nil,APackageName) do
@@ -207,7 +210,7 @@ end;
 
 
 Procedure TPackageHandler.Log(Level:TLogLevel; Fmt:String; const Args:array of const);
 Procedure TPackageHandler.Log(Level:TLogLevel; Fmt:String; const Args:array of const);
 begin
 begin
-  pkgglobals.Log(Level,PackageLogPrefix+Fmt,Args);
+  pkgglobals.log(Level,PackageLogPrefix+Fmt,Args);
 end;
 end;
 
 
 
 

+ 25 - 25
utils/fppkg/pkgoptions.pp

@@ -339,7 +339,7 @@ begin
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         if (FConfigVersion<>CurrentConfigVersion) then
         if (FConfigVersion<>CurrentConfigVersion) then
           begin
           begin
-            Log(vlDebug,SLogUpgradingConfig,[AFileName]);
+            log(vlDebug,SLogUpgradingConfig,[AFileName]);
             FSaveInifileChanges:=true;
             FSaveInifileChanges:=true;
             if FConfigVersion<1 then
             if FConfigVersion<1 then
               begin
               begin
@@ -404,16 +404,16 @@ end;
 
 
 procedure TGlobalOptions.LogValues(ALogLevel: TLogLevel);
 procedure TGlobalOptions.LogValues(ALogLevel: TLogLevel);
 begin
 begin
-  Log(ALogLevel,SLogGlobalCfgHeader,[FConfigFilename]);
-  Log(ALogLevel,SLogGlobalCfgRemoteMirrorsURL,[FRemoteMirrorsURL]);
-  Log(ALogLevel,SLogGlobalCfgRemoteRepository,[FRemoteRepository]);
-  Log(ALogLevel,SLogGlobalCfgLocalRepository,[FLocalRepository,LocalRepository]);
-  Log(ALogLevel,SLogGlobalCfgBuildDir,[FBuildDir,BuildDir]);
-  Log(ALogLevel,SLogGlobalCfgArchivesDir,[FArchivesDir,ArchivesDir]);
-  Log(ALogLevel,SLogGlobalCfgCompilerConfigDir,[FCompilerConfigDir,CompilerConfigDir]);
-  Log(ALogLevel,SLogGlobalCfgDefaultCompilerConfig,[FDefaultCompilerConfig]);
-  Log(ALogLevel,SLogGlobalCfgFPMakeCompilerConfig,[FPMakeCompilerConfig]);
-  Log(ALogLevel,SLogGlobalCfgDownloader,[FDownloader]);
+  log(ALogLevel,SLogGlobalCfgHeader,[FConfigFilename]);
+  log(ALogLevel,SLogGlobalCfgRemoteMirrorsURL,[FRemoteMirrorsURL]);
+  log(ALogLevel,SLogGlobalCfgRemoteRepository,[FRemoteRepository]);
+  log(ALogLevel,SLogGlobalCfgLocalRepository,[FLocalRepository,LocalRepository]);
+  log(ALogLevel,SLogGlobalCfgBuildDir,[FBuildDir,BuildDir]);
+  log(ALogLevel,SLogGlobalCfgArchivesDir,[FArchivesDir,ArchivesDir]);
+  log(ALogLevel,SLogGlobalCfgCompilerConfigDir,[FCompilerConfigDir,CompilerConfigDir]);
+  log(ALogLevel,SLogGlobalCfgDefaultCompilerConfig,[FDefaultCompilerConfig]);
+  log(ALogLevel,SLogGlobalCfgFPMakeCompilerConfig,[FPMakeCompilerConfig]);
+  log(ALogLevel,SLogGlobalCfgDownloader,[FDownloader]);
 end;
 end;
 
 
 
 
@@ -588,7 +588,7 @@ begin
   // We retrieve the real binary
   // We retrieve the real binary
   if FCompilerVersion='2.2.0' then
   if FCompilerVersion='2.2.0' then
     FCompiler:=GetCompilerInfo(FCompiler,'-PB');
     FCompiler:=GetCompilerInfo(FCompiler,'-PB');
-  Log(vlDebug,SLogDetectedCompiler,[FCompiler,FCompilerVersion,MakeTargetString(FCompilerCPU,FCompilerOS)]);
+  log(vlDebug,SLogDetectedCompiler,[FCompiler,FCompilerVersion,MakeTargetString(FCompilerCPU,FCompilerOS)]);
 
 
   // Use the same algorithm as the compiler, see options.pas
   // Use the same algorithm as the compiler, see options.pas
   // Except that the prefix is extracted and GlobalInstallDir is set using
   // Except that the prefix is extracted and GlobalInstallDir is set using
@@ -606,12 +606,12 @@ begin
   FGlobalPrefix:=ExpandFileName(FGlobalPrefix);
   FGlobalPrefix:=ExpandFileName(FGlobalPrefix);
 {$endif unix}
 {$endif unix}
 
 
-  Log(vlDebug,SLogDetectedPrefix,['global',FGlobalPrefix]);
+  log(vlDebug,SLogDetectedPrefix,['global',FGlobalPrefix]);
   // User writable install directory
   // User writable install directory
   if not IsSuperUser then
   if not IsSuperUser then
     begin
     begin
       FLocalPrefix:= '{LocalRepository}';
       FLocalPrefix:= '{LocalRepository}';
-      Log(vlDebug,SLogDetectedPrefix,['local',FLocalPrefix]);
+      log(vlDebug,SLogDetectedPrefix,['local',FLocalPrefix]);
     end;
     end;
 
 
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'));
   fpcdir:=FixPath(GetEnvironmentVariable('FPCDIR'));
@@ -620,7 +620,7 @@ begin
     {$ifndef Unix}
     {$ifndef Unix}
     fpcdir:=ExpandFileName(fpcdir);
     fpcdir:=ExpandFileName(fpcdir);
     {$endif unix}
     {$endif unix}
-    Log(vlDebug,SLogFPCDirEnv,[fpcdir]);
+    log(vlDebug,SLogFPCDirEnv,[fpcdir]);
     FGlobalInstallDir:=fpcdir;
     FGlobalInstallDir:=fpcdir;
     end;
     end;
 end;
 end;
@@ -638,7 +638,7 @@ begin
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         FConfigVersion:=ReadInteger(SDefaults,KeyConfigVersion,0);
         if (FConfigVersion<>CurrentConfigVersion) then
         if (FConfigVersion<>CurrentConfigVersion) then
           begin
           begin
-            Log(vlDebug,SLogUpgradingConfig,[AFileName]);
+            log(vlDebug,SLogUpgradingConfig,[AFileName]);
             FSaveInifileChanges:=true;
             FSaveInifileChanges:=true;
             if (FConfigVersion>CurrentConfigVersion) then
             if (FConfigVersion>CurrentConfigVersion) then
               Error(SErrUnsupportedConfigVersion,[AFileName]);
               Error(SErrUnsupportedConfigVersion,[AFileName]);
@@ -688,15 +688,15 @@ end;
 
 
 procedure TCompilerOptions.LogValues(ALogLevel: TLogLevel; const ACfgName:string);
 procedure TCompilerOptions.LogValues(ALogLevel: TLogLevel; const ACfgName:string);
 begin
 begin
-  Log(ALogLevel,SLogCompilerCfgHeader,[ACfgName,FConfigFilename]);
-  Log(ALogLevel,SLogCompilerCfgCompiler,[FCompiler]);
-  Log(ALogLevel,SLogCompilerCfgTarget,[MakeTargetString(CompilerCPU,CompilerOS)]);
-  Log(ALogLevel,SLogCompilerCfgVersion,[FCompilerVersion]);
-  Log(ALogLevel,SLogCompilerCfgGlobalPrefix,[FGlobalPrefix,GlobalPrefix]);
-  Log(ALogLevel,SLogCompilerCfgLocalPrefix,[FLocalPrefix,LocalPrefix]);
-  Log(ALogLevel,SLogCompilerCfgGlobalInstallDir,[FGlobalInstallDir,GlobalInstallDir]);
-  Log(ALogLevel,SLogCompilerCfgLocalInstallDir,[FLocalInstallDir,LocalInstallDir]);
-  Log(ALogLevel,SLogCompilerCfgOptions,[Options.DelimitedText]);
+  log(ALogLevel,SLogCompilerCfgHeader,[ACfgName,FConfigFilename]);
+  log(ALogLevel,SLogCompilerCfgCompiler,[FCompiler]);
+  log(ALogLevel,SLogCompilerCfgTarget,[MakeTargetString(CompilerCPU,CompilerOS)]);
+  log(ALogLevel,SLogCompilerCfgVersion,[FCompilerVersion]);
+  log(ALogLevel,SLogCompilerCfgGlobalPrefix,[FGlobalPrefix,GlobalPrefix]);
+  log(ALogLevel,SLogCompilerCfgLocalPrefix,[FLocalPrefix,LocalPrefix]);
+  log(ALogLevel,SLogCompilerCfgGlobalInstallDir,[FGlobalInstallDir,GlobalInstallDir]);
+  log(ALogLevel,SLogCompilerCfgLocalInstallDir,[FLocalInstallDir,LocalInstallDir]);
+  log(ALogLevel,SLogCompilerCfgOptions,[Options.DelimitedText]);
 end;
 end;
 
 
 
 

+ 12 - 12
utils/fppkg/pkgrepos.pp

@@ -61,7 +61,7 @@ begin
 
 
   // Repository
   // Repository
   S:=GlobalOptions.LocalMirrorsFile;
   S:=GlobalOptions.LocalMirrorsFile;
-  Log(vlDebug,SLogLoadingMirrorsFile,[S]);
+  log(vlDebug,SLogLoadingMirrorsFile,[S]);
   if not FileExists(S) then
   if not FileExists(S) then
     exit;
     exit;
   try
   try
@@ -117,7 +117,7 @@ begin
     end;
     end;
   if assigned(M) then
   if assigned(M) then
     begin
     begin
-      Log(vlInfo,SLogSelectedMirror,[M.Name]);
+      log(vlInfo,SLogSelectedMirror,[M.Name]);
       Result:=M.URL;
       Result:=M.URL;
     end
     end
   else
   else
@@ -270,7 +270,7 @@ procedure FindInstalledPackages(ACompilerOptions:TCompilerOptions;showdups:boole
         result.UnusedVersion:=result.Version;
         result.UnusedVersion:=result.Version;
         // Log packages found in multiple locations (local and global) ?
         // Log packages found in multiple locations (local and global) ?
         if showdups then
         if showdups then
-          Log(vlDebug,SDbgPackageMultipleLocations,[result.Name,ExtractFilePath(AFileName)]);
+          log(vlDebug,SDbgPackageMultipleLocations,[result.Name,ExtractFilePath(AFileName)]);
       end;
       end;
     result.InstalledLocally:=Local;
     result.InstalledLocally:=Local;
   end;
   end;
@@ -299,7 +299,7 @@ procedure FindInstalledPackages(ACompilerOptions:TCompilerOptions;showdups:boole
     Result:=false;
     Result:=false;
     if FindFirst(IncludeTrailingPathDelimiter(AUnitDir)+AllFiles,faDirectory,SR)=0 then
     if FindFirst(IncludeTrailingPathDelimiter(AUnitDir)+AllFiles,faDirectory,SR)=0 then
       begin
       begin
-        Log(vlDebug,SLogFindInstalledPackages,[AUnitDir]);
+        log(vlDebug,SLogFindInstalledPackages,[AUnitDir]);
         repeat
         repeat
           if ((SR.Attr and faDirectory)=faDirectory) and (SR.Name<>'.') and (SR.Name<>'..') then
           if ((SR.Attr and faDirectory)=faDirectory) and (SR.Name<>'.') and (SR.Name<>'..') then
             begin
             begin
@@ -343,7 +343,7 @@ end;
 
 
 Procedure AddFPMakeAddIn(APackage: TFPPackage);
 Procedure AddFPMakeAddIn(APackage: TFPPackage);
 begin
 begin
-  Log(vlDebug,SLogFoundFPMakeAddin,[APackage.Name]);
+  log(vlDebug,SLogFoundFPMakeAddin,[APackage.Name]);
   setlength(FPMKUnitDeps,length(FPMKUnitDeps)+1);
   setlength(FPMKUnitDeps,length(FPMKUnitDeps)+1);
   FPMKUnitDeps[high(FPMKUnitDeps)].package:=APackage.Name;
   FPMKUnitDeps[high(FPMKUnitDeps)].package:=APackage.Name;
   FPMKUnitDeps[high(FPMKUnitDeps)].reqver:=APackage.Version.AsString;
   FPMKUnitDeps[high(FPMKUnitDeps)].reqver:=APackage.Version.AsString;
@@ -372,7 +372,7 @@ begin
             begin
             begin
               if (DepPackage.Checksum<>D.RequireChecksum) then
               if (DepPackage.Checksum<>D.RequireChecksum) then
                 begin
                 begin
-                  Log(vlInfo,SLogPackageChecksumChanged,[APackage.Name,D.PackageName]);
+                  log(vlInfo,SLogPackageChecksumChanged,[APackage.Name,D.PackageName]);
                   result:=true;
                   result:=true;
                   if MarkForReInstall then
                   if MarkForReInstall then
                     begin
                     begin
@@ -401,7 +401,7 @@ begin
                 end;
                 end;
             end
             end
           else
           else
-            Log(vlDebug,SDbgObsoleteDependency,[D.PackageName]);
+            log(vlDebug,SDbgObsoleteDependency,[D.PackageName]);
         end;
         end;
     end;
     end;
 end;
 end;
@@ -452,14 +452,14 @@ begin
             AvailVerStr:='<not available>';
             AvailVerStr:='<not available>';
           ReqVer:=TFPVersion.Create;
           ReqVer:=TFPVersion.Create;
           ReqVer.AsString:=FPMKUnitDeps[i].ReqVer;
           ReqVer.AsString:=FPMKUnitDeps[i].ReqVer;
-          Log(vlDebug,SLogFPMKUnitDepVersion,[P.Name,ReqVer.AsString,P.Version.AsString,AvailVerStr]);
+          log(vlDebug,SLogFPMKUnitDepVersion,[P.Name,ReqVer.AsString,P.Version.AsString,AvailVerStr]);
           if ReqVer.CompareVersion(P.Version)<=0 then
           if ReqVer.CompareVersion(P.Version)<=0 then
             FPMKUnitDeps[i].available:=true
             FPMKUnitDeps[i].available:=true
           else
           else
-            Log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
+            log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
         end
         end
       else
       else
-        Log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
+        log(vlDebug,SLogFPMKUnitDepTooOld,[FPMKUnitDeps[i].package]);
     end;
     end;
 end;
 end;
 
 
@@ -478,7 +478,7 @@ begin
   AvailableRepository:=TFPRepository.Create(Nil);
   AvailableRepository:=TFPRepository.Create(Nil);
   // Repository
   // Repository
   S:=GlobalOptions.LocalPackagesFile;
   S:=GlobalOptions.LocalPackagesFile;
-  Log(vlDebug,SLogLoadingPackagesFile,[S]);
+  log(vlDebug,SLogLoadingPackagesFile,[S]);
   if not FileExists(S) then
   if not FileExists(S) then
     exit;
     exit;
   try
   try
@@ -689,7 +689,7 @@ begin
         { Unzip manifest.xml }
         { Unzip manifest.xml }
         With TUnZipper.Create do
         With TUnZipper.Create do
           try
           try
-            Log(vlCommands,SLogUnzippping,[ArchiveSL[i]]);
+            log(vlCommands,SLogUnzippping,[ArchiveSL[i]]);
             OutputPath:='.';
             OutputPath:='.';
             UnZipFiles(ArchiveSL[i],ManifestSL);
             UnZipFiles(ArchiveSL[i],ManifestSL);
           Finally
           Finally