]> git.e2factory.org Git - e2factory.git/commitdiff
transport: remove duplicate comment and rmtempfile call
authorTobias Ulmer <tu@emlix.com>
Wed, 3 May 2017 17:01:45 +0000 (19:01 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 25 Apr 2018 15:40:16 +0000 (17:40 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/transport.lua

index d76926f5fb3585d6d6ddb5f869d671204b155231..2272e63cf089a36dc23910d51c9f4f801b1aab12 100644 (file)
@@ -189,13 +189,6 @@ function transport.fetch_file(surl, location, destdir, destname)
     -- missing error detection.
     e2lib.rmtempfile(tmpfile_path)
 
-    -- Some tools (rsync) do not return an error code when skipping symlinks,
-    -- device files, etc. Thus we delete the tmp file here, let rsync do its
-    -- job, and detect the silent error condition when moving the file to its
-    -- final destination. Yes there is a race, but we take that chance over
-    -- missing error detection.
-    e2lib.rmtempfile(tmpfile_path)
-
     -- fetch the file to the temporary directory
     if u.transport == "http" or
         u.transport == "https" then