Jelajahi Sumber

* Do not handle files with the same name as a package as a package-file if the extension is not .zip

git-svn-id: trunk@15169 -
joost 15 tahun lalu
induk
melakukan
82eb1a1a1c
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      utils/fppkg/fppkg.pp

+ 1 - 1
utils/fppkg/fppkg.pp

@@ -351,7 +351,7 @@ begin
         // Process packages
         for i:=0 to ParaPackages.Count-1 do
           begin
-            if FileExists(ParaPackages[i]) then
+            if sametext(ExtractFileExt(ParaPackages[i]),'.zip') and FileExists(ParaPackages[i]) then
               begin
                 ActionPackage:=AvailableRepository.AddPackage(CmdLinePackageName);
                 ActionPackage.LocalFileName:=ExpandFileName(ParaPackages[i]);