Changeset 70709 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jan 23, 2018 3:27:27 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120452
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r70660 r70709 1856 1856 g_fTarCopyFileObjOverriddend = False; 1857 1857 1858 def __mytarfilecopyfileobj(src, dst, length = None, exception = OSError ):1858 def __mytarfilecopyfileobj(src, dst, length = None, exception = OSError, bufsize = None): 1859 1859 """ tarfile.copyfileobj with different buffer size (16384 is slow on windows). """ 1860 1860 if length is None: … … 1896 1896 if g_fTarCopyFileObjOverriddend is False: 1897 1897 g_fTarCopyFileObjOverriddend = True; 1898 #if sys.hexversion < 0x03060000: 1898 1899 tarfile.copyfileobj = __mytarfilecopyfileobj; 1899 1900 … … 1904 1905 # That's how we got a 13 min unpack time for VBoxAll on windows (hardlinked pdb). 1905 1906 # 1906 try: oTarFile = tarfile.open(sArchive, 'r|*', bufsize = g_cbGoodBufferSize); 1907 try: 1908 if sys.hexversion >= 0x03060000: 1909 oTarFile = tarfile.open(sArchive, 'r|*', bufsize = g_cbGoodBufferSize, copybufsize = g_cbGoodBufferSize); 1910 else: 1911 oTarFile = tarfile.open(sArchive, 'r|*', bufsize = g_cbGoodBufferSize); 1907 1912 except Exception as oXcpt: 1908 1913 fnError('Error opening "%s" for unpacking into "%s": %s' % (sArchive, sDstDir, oXcpt,));
Note:
See TracChangeset
for help on using the changeset viewer.