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

Commit

Permalink
Avoid clogging up tmp when updater dir has bad permissions. (#5024)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork authored and arkpar committed Mar 27, 2017
1 parent f87c237 commit 4b40c1a
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 4b40c1a

Please sign in to comment.