From 1a5cd9e0bf011436fb5466e93c4a828a263bfff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 20 Apr 2020 11:26:17 +0200 Subject: [PATCH] linker: Remove check after copying file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After a file is copied, a check was done if size and mtime of the files match. This has very few benefits in what problems it can detect, and can cause problems on NFS where it can take a short time before the updated attributes are visible on the new location. JIRA: RHELCMP-378 Signed-off-by: Lubomír Sedlář --- pungi/linker.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pungi/linker.py b/pungi/linker.py index f01b8670..7d85a38f 100644 --- a/pungi/linker.py +++ b/pungi/linker.py @@ -201,11 +201,6 @@ class Linker(kobo.log.LoggingBase): shutil.copy2(src, dst) self._inode_map[src_key] = dst - if not self._is_same(src, dst): - self.log_error("File %s doesn't match the copied file %s" % (src, dst)) - # XXX: - raise OSError(errno.EEXIST, "File exists") - def _link_file(self, src, dst, link_type): if link_type == "hardlink": self.hardlink(src, dst)