diff options
| author | Simon Glass <[email protected]> | 2022-01-09 20:13:42 -0700 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2022-01-25 12:36:11 -0700 |
| commit | 5b7968693f9c2aefea5bd50dc1f143ec3a1caa42 (patch) | |
| tree | eb56a33c382bd5e881720fae07140d599bc82ce3 /tools/buildman | |
| parent | 8ea6d23ffb7787c5c42b78c38466e46a43bd55ad (diff) | |
patman: Tidy up the download function a little
Reverse the order of the return tuple, so that the filename is first.
This seems more obvious than putting the temporary directory first.
Correct a bug that leaves a space on the final line.
Allow the caller to control the name of the temporary directory.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'tools/buildman')
| -rw-r--r-- | tools/buildman/toolchain.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py index bcae5ef7415..adc75a7a0b7 100644 --- a/tools/buildman/toolchain.py +++ b/tools/buildman/toolchain.py @@ -571,7 +571,7 @@ class Toolchains: os.mkdir(dest) # Download the tar file for this toolchain and unpack it - tmpdir, tarfile = tools.Download(url) + tarfile, tmpdir = tools.Download(url, '.buildman') if not tarfile: return 1 print(col.Color(col.GREEN, 'Unpacking to: %s' % dest), end=' ') |
