فهرست منبع

* Do not change the current directory, that does not work well with multiple threads

git-svn-id: trunk@20352 -
joost 13 سال پیش
والد
کامیت
3c02dc25f2
1فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 2 4
      packages/fpmkunit/src/fpmkunit.pp

+ 2 - 4
packages/fpmkunit/src/fpmkunit.pp

@@ -5013,9 +5013,8 @@ begin
   // Recompile a Target of this package?
   // Recompile a Target of this package?
   If Not Result then
   If Not Result then
     begin
     begin
+      GPathPrefix := APackage.Directory;
       try
       try
-        If (APackage.Directory<>'') then
-          EnterDir(APackage.Directory);
         for i:=0 to APackage.Targets.Count-1 do
         for i:=0 to APackage.Targets.Count-1 do
           begin
           begin
             Result:=NeedsCompile(APackage,APackage.Targets.TargetItems[i]);
             Result:=NeedsCompile(APackage,APackage.Targets.TargetItems[i]);
@@ -5023,8 +5022,7 @@ begin
               break;
               break;
           end;
           end;
       Finally
       Finally
-        If (APackage.Directory<>'') then
-          EnterDir('');
+        GPathPrefix := '';
       end;
       end;
     end;
     end;