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: