Skip to content
This repository has been archived by the owner on Feb 13, 2020. It is now read-only.

Commit

Permalink
Merge pull request #571 from gamechanger/js-preflight-on-upgrade
Browse files Browse the repository at this point in the history
check that preflight succeeds before upgrade
  • Loading branch information
jsingle committed Sep 8, 2015
2 parents 7b90eff + 6bd452f commit 277ca21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

* **Misc**
* Dusty now adds any known hosts specified in the `repo` field of specs to root's known host file. Previously, users had to manually add hosts as root, or Dusty couldn't pull repos other than GitHub.

* `dusty upgrade` will check that requirements of the new version are satisfied before completing the upgrade.

## 0.6.0 (September 8, 2015)

Expand Down
2 changes: 2 additions & 0 deletions dusty/commands/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from ..daemon import close_client_connection, clean_up_socket
from ..log import log_to_client
from ..payload import daemon_command
from ..subprocess import check_and_log_output_and_error


def _get_latest_version():
Expand Down Expand Up @@ -51,6 +52,7 @@ def _test_dusty_binary(binary_path, version):
return
if test_version != version:
raise RuntimeError('Version of downloaded binary {} does not match expected {}'.format(test_version, version))
check_and_log_output_and_error([binary_path, '-d', '--preflight-only'], demote=False, quiet_on_success=True)

def _move_temp_binary_to_path(tmp_binary_path):
"""Moves the temporary binary to the location of the binary that's currently being run.
Expand Down

0 comments on commit 277ca21

Please sign in to comment.