VirtualBox

Changeset 83623 in vbox for trunk/src


Ignore:
Timestamp:
Apr 8, 2020 4:26:17 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137053
Message:

Validation Kit/testdriver: Explicitly set tarfile.GNU_FORMAT when creating tarballs, as with Python 3.8 the default format (tarfile.DEFAULT_FORMAT) has been changed to tarfile.PAX_FORMAT, which our extraction code (vts_tar) currently can't handle.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/testfileset.py

    r82968 r83623  
    514514        # Open the tarball:
    515515        try:
    516             oTarFile = tarfile.open(sTarFileHst, 'w:gz');
     516            # Make sure to explicitly set GNU_FORMAT here, as with Python 3.8 the default format (tarfile.DEFAULT_FORMAT)
     517            # has been changed to tarfile.PAX_FORMAT, which our extraction code (vts_tar) currently can't handle.
     518            ## @todo Remove tarfile.GNU_FORMAT and use tarfile.PAX_FORMAT as soon as we have PAX support.
     519            oTarFile = tarfile.open(sTarFileHst, 'w:gz', format = tarfile.GNU_FORMAT);
    517520        except:
    518521            return reporter.errorXcpt('Failed to open new tar file: %s' % (sTarFileHst,));
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette