Skip to content

Commit

Permalink
Avoid clogging up tmp when updater dir has bad permissions. (openethe…
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork authored and arkpar committed Mar 24, 2017
1 parent 3b54b49 commit 7e78480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updater/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl Updater {
let running_latest = latest.track.version.hash == self.version_info().hash;
let already_have_latest = s.installed.as_ref().or(s.ready.as_ref()).map_or(false, |t| *t == latest.track);

if self.update_policy.enable_downloading && !running_later && !running_latest && !already_have_latest {
if !s.disabled && self.update_policy.enable_downloading && !running_later && !running_latest && !already_have_latest {
if let Some(b) = latest.track.binary {
if s.fetching.is_none() {
if self.updates_path(&Self::update_file_name(&latest.track.version)).exists() {
Expand Down

0 comments on commit 7e78480

Please sign in to comment.