From 5c4ad31111e3394d05246621c03ca1bd796de3bd Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 17 Oct 2014 16:22:14 -0400 Subject: [PATCH] Have the tarfileappender also copy the mode and mtime to the new records --- util/tarfileappender.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/tarfileappender.py b/util/tarfileappender.py index cf0605cd3..200956c9a 100644 --- a/util/tarfileappender.py +++ b/util/tarfileappender.py @@ -35,6 +35,9 @@ class TarfileAppender(TarLayerFormat): info = tarfile.TarInfo(dir_path) info.uid = self.last_info.uid info.gid = self.last_info.gid + info.mode = self.last_info.mode + info.mtime = self.last_info.mtime + info.type = tarfile.REGTYPE if contents else tarfile.DIRTYPE if contents: