فهرست منبع

* 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 سال پیش
والد
کامیت
82eb1a1a1c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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]);