aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/uhd_images_downloader.py.in
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2015-03-18 09:19:06 -0700
committerAshish Chaudhari <ashish@ettus.com>2015-03-18 09:19:06 -0700
commit0634323a51a32ebc288383856af4cd150eae1aa8 (patch)
treeb67b3a09818588f8c16b45fe0d35b12fbee7d35d /host/utils/uhd_images_downloader.py.in
parent306b5243e12af0db493856ad8397abac9835db0c (diff)
parentf9740c893bc4235aba347bc7fec867c7d9024b3f (diff)
downloaduhd-0634323a51a32ebc288383856af4cd150eae1aa8.tar.gz
uhd-0634323a51a32ebc288383856af4cd150eae1aa8.tar.bz2
uhd-0634323a51a32ebc288383856af4cd150eae1aa8.zip
Merge branch 'maint'
Diffstat (limited to 'host/utils/uhd_images_downloader.py.in')
-rw-r--r--host/utils/uhd_images_downloader.py.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in
index 5b16c7bb5..3903edc8c 100644
--- a/host/utils/uhd_images_downloader.py.in
+++ b/host/utils/uhd_images_downloader.py.in
@@ -308,11 +308,12 @@ def main():
if options.verbose:
print "Downloaded %d of %d bytes" % (downloaded_size, reported_size)
else:
- temp_images_dest = os.path.join(options.base_url, options.filename)
- print "Copying images from: {0}".format(temp_images_dest)
- if not os.path.isfile(temp_images_dest):
+ local_images_pkg = os.path.join(options.base_url, options.filename)
+ print "Copying images from: {0}".format(local_images_pkg)
+ if not os.path.isfile(local_images_pkg):
print "[ERROR] No such file."
return 1
+ shutil.copyfile(local_images_pkg, temp_images_dest)
(checksum_match, calculated_checksum) = downloader.validate_checksum(
checksum_fn,
temp_images_dest,