Explorar o código

* use FindPackage to not raise and error if package is not installed

git-svn-id: trunk@10078 -
peter %!s(int64=17) %!d(string=hai) anos
pai
achega
886c74ac75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils/fppkg/pkgrepos.pp

+ 1 - 1
utils/fppkg/pkgrepos.pp

@@ -203,7 +203,7 @@ begin
   for i:=1 to FPMKUnitDepCount do
     begin
       FPMKUnitDepAvailable[i]:=false;
-      P:=CurrentRepository.PackageByName(FPMKUnitDeps[i].package);
+      P:=CurrentRepository.FindPackage(FPMKUnitDeps[i].package);
       if P<>nil then
         begin
           ReqVer:=TFPVersion.Create;