Skip to content

Commit

Permalink
bugfix: jill install --update
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnychen94 committed Feb 11, 2020
1 parent c3b56af commit 2d02aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion jill/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def download_package(version=None, sys=None, arch=None, *,
if you want to download from JuliaComputing's s3 buckets.
outdir: where release is downloaded to. By default it's current folder.
overwrite: True to overwrite existing releases. By default it's False.
update: add `--update` to update release info before downloading.
update:
add `--update` to update release info for incomplete version string
(e.g., `1.0`) before downloading.
max_try: try `max_try` times before returning a False.
"""
version = str(version) if version else ''
Expand Down
6 changes: 4 additions & 2 deletions jill/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,17 @@ def install_julia(version=None, *,
upstream:
manually choose a download upstream. For example, set it to "Official"
if you want to download from JuliaComputing's s3 buckets.
update: add `--update` to update release info before downloading.
update:
add `--update` to update release info for incomplete version string
(e.g., `1.0`) before downloading.
keep_downloads: True to not remove downloaded releases.
confirm: add `--confirm` to skip interactive prompt.
"""
install_dir = install_dir if install_dir else default_install_dir()
symlink_dir = symlink_dir if symlink_dir else default_symlink_dir()
system, arch = current_system(), current_architecture()
version = str(version) if version else ''
version = latest_version(version, system, arch)
version = latest_version(version, system, arch, update=update)

if not confirm:
question = "jill will:\n"
Expand Down

0 comments on commit 2d02aea

Please sign in to comment.