Have the tarfileappender also copy the mode and mtime to the new records

This commit is contained in:
Joseph Schorr 2014-10-17 16:22:14 -04:00
parent b3292f8549
commit 5c4ad31111

View file

@ -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: