Have the tarfileappender also copy the mode and mtime to the new records
This commit is contained in:
parent
b3292f8549
commit
5c4ad31111
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue