For some reason, bug #185305 no longer seems to be an issue, and the
fix/workaround seems to cause bug 338509.
else:
os = portage.os
- from portage.util import normalize_path
- import tarfile
root = normalize_path(root).rstrip(os.path.sep) + os.path.sep
id_strings = {}
maxval = len(contents)
tarinfo = tar.gettarinfo(live_path, arcname)
if stat.S_ISREG(lst.st_mode):
- # break hardlinks due to bug #185305
- tarinfo.type = tarfile.REGTYPE
if protect and protect(path):
# Create an empty file as a place holder in order to avoid
# potential collision-protect issues.