[2/2] testbot/lib: Move staging files into place rather than copying them.

Francois Gouget fgouget at codeweavers.com
Fri May 16 08:50:09 CDT 2014


---
 testbot/lib/WineTestBot/Steps.pm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/WineTestBot/Steps.pm b/testbot/lib/WineTestBot/Steps.pm
index bd60ed1..0431bc0 100644
--- a/testbot/lib/WineTestBot/Steps.pm
+++ b/testbot/lib/WineTestBot/Steps.pm
@@ -77,11 +77,10 @@ sub HandleStaging
                       "/$BaseName";
   mkdir "$DataDir/jobs/$JobKey";
   mkdir "$DataDir/jobs/$JobKey/" . $self->GetKey();
-  if (!copy($StagingFileName, $FinalFileName))
+  if (!move($StagingFileName, $FinalFileName))
   {
-    return "Can't move the staging file: $!";
+    return "Could not move the staging file: $!";
   }
-  unlink($StagingFileName);
 
   $self->FileName($BaseName);
   $self->InStaging(!1);
-- 
2.0.0.rc0



More information about the wine-patches mailing list