- Fix bug in tarlayerformat when dealing with larger headers
- Fix bug around entry points and config in the ACI converter
This commit is contained in:
parent
e902cd62fd
commit
fa55169c35
2 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import tarfile
|
||||
import copy
|
||||
|
||||
class TarLayerReadException(Exception):
|
||||
""" Exception raised when reading a layer has failed. """
|
||||
|
@ -38,7 +39,7 @@ class TarLayerFormat(object):
|
|||
|
||||
# Yield the tar header.
|
||||
if self.path_prefix:
|
||||
clone = tarfile.TarInfo.frombuf(tar_info.tobuf())
|
||||
clone = copy.deepcopy(tar_info)
|
||||
clone.name = os.path.join(self.path_prefix, clone.name)
|
||||
yield clone.tobuf()
|
||||
else:
|
||||
|
|
Reference in a new issue