Fix tar layer format comment
This commit is contained in:
parent
31306167ac
commit
555bd293ea
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class TarLayerFormat(object):
|
||||||
clone = copy.deepcopy(tar_info)
|
clone = copy.deepcopy(tar_info)
|
||||||
clone.name = os.path.join(self.path_prefix, clone.name)
|
clone.name = os.path.join(self.path_prefix, clone.name)
|
||||||
|
|
||||||
# If the entry is a link of some kind, and it is not relative, then prefix it as well.
|
# If the entry is a *hard* link, then prefix it as well. Soft links are relative.
|
||||||
if clone.linkname and clone.type == tarfile.LNKTYPE:
|
if clone.linkname and clone.type == tarfile.LNKTYPE:
|
||||||
clone.linkname = os.path.join(self.path_prefix, clone.linkname)
|
clone.linkname = os.path.join(self.path_prefix, clone.linkname)
|
||||||
|
|
||||||
|
|
Reference in a new issue