Commit 2d6a58b9 authored by Gregory P. Smith's avatar Gregory P. Smith

merge heads

parents 8907dcd3 5135e9ed
......@@ -2153,10 +2153,10 @@ class TarFile(object):
for offset, size in tarinfo.sparse:
target.seek(offset)
copyfileobj(source, target, size, ReadError)
target.seek(tarinfo.size)
target.truncate()
else:
copyfileobj(source, target, tarinfo.size, ReadError)
target.seek(tarinfo.size)
target.truncate()
def makeunknown(self, tarinfo, targetpath):
"""Make a file from a TarInfo object with an unknown type
......
......@@ -462,6 +462,7 @@ Stefan Franke
Martin Franklin
Kent Frazier
Bruce Frederiksen
Jason Fried
Robin Friedrich
Bradley Froehle
Ivan Frohne
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment