Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions cf_remote/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def has_downloaded_package(path, filename, checksum, insecure):


def download_package(url, path=None, checksum=None, insecure=False):
print(insecure)
assert path is None or type(path) is str and len(path) > 0

if checksum and not SHA256_RE.match(checksum):
Expand All @@ -85,7 +84,7 @@ def download_package(url, path=None, checksum=None, insecure=False):
return path

print("Downloading package: '{}'".format(path))
fd, tmp = tempfile.mkstemp()
fd, tmp = tempfile.mkstemp(dir=os.path.dirname(path))
answer = urllib.request.urlopen(url).read()
os.write(fd, answer)
os.close(fd)
Expand Down