Commit 779d8687 authored by Łukasz Nowak's avatar Łukasz Nowak

Follow argument position change.

parent 5bb1c15f
...@@ -192,8 +192,8 @@ class Download(object): ...@@ -192,8 +192,8 @@ class Download(object):
'MD5 checksum mismatch downloading %r' % url) 'MD5 checksum mismatch downloading %r' % url)
# Upload the file to networkcached. # Upload the file to networkcached.
if self.upload_cache_url and self.upload_dir_url: if self.upload_cache_url and self.upload_dir_url:
upload_network_cached(self.upload_cache_url, upload_network_cached(self.upload_dir_url,
self.upload_dir_url, url, tmp_path, self.logger) self.upload_cache_url, url, tmp_path, self.logger)
finally: finally:
os.close(handle) os.close(handle)
except: except:
......
...@@ -723,8 +723,8 @@ class Installer: ...@@ -723,8 +723,8 @@ class Installer:
new_location, dist.location, logger): new_location, dist.location, logger):
new_location = self._index.download(dist.location, tmp) new_location = self._index.download(dist.location, tmp)
if self._upload_cache_url and self._upload_dir_url: if self._upload_cache_url and self._upload_dir_url:
upload_network_cached(self._upload_cache_url, upload_network_cached(self._upload_dir_url,
self._upload_dir_url, dist.location, new_location, logger) self._upload_cache_url, dist.location, new_location, logger)
if (download_cache if (download_cache
and (realpath(new_location) == realpath(dist.location)) and (realpath(new_location) == realpath(dist.location))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment