Message ID | 20121002025613.15015.69212.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/device/master.py' --- lava_dispatcher/device/master.py 2012-10-01 19:17:31 +0000 +++ lava_dispatcher/device/master.py 2012-10-02 02:53:01 +0000 @@ -24,7 +24,6 @@ import logging import os import shutil -import tarfile import time import traceback @@ -254,8 +253,7 @@ tfdir = os.path.join(self.scratch_dir, str(time.time())) try: os.mkdir(tfdir) - tar = tarfile.open(tf, 'r:gz') - tar.extractall(tfdir) + logging_system('tar -C %s -xzf %s' % (tfdir, tf)) yield tfdir finally: