mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +00:00
target: Fix creation of destination
Was previously trying to create the output directory including the filename.
This commit is contained in:
parent
853bdff936
commit
30257456ab
@ -317,8 +317,9 @@ class Target(object):
|
|||||||
self.logger.debug('Failed to run tar command on target! ' \
|
self.logger.debug('Failed to run tar command on target! ' \
|
||||||
'Not pulling directory {}'.format(source_dir))
|
'Not pulling directory {}'.format(source_dir))
|
||||||
# Pull the file
|
# Pull the file
|
||||||
os.mkdir(outdir)
|
if not os.path.exists(dest):
|
||||||
self.pull(tar_file_name, tempfile )
|
os.mkdir(dest)
|
||||||
|
self.pull(tar_file_name, tempfile)
|
||||||
# Decompress
|
# Decompress
|
||||||
f = tarfile.open(tempfile, 'r')
|
f = tarfile.open(tempfile, 'r')
|
||||||
f.extractall(outdir)
|
f.extractall(outdir)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user