Browse Source

* 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 years ago
parent
commit
82eb1a1a1c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/fppkg/fppkg.pp

+ 1 - 1
utils/fppkg/fppkg.pp

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