Skip to content

Commit

Permalink
don't print summary of single crate install
Browse files Browse the repository at this point in the history
  • Loading branch information
durka committed Jun 24, 2017
1 parent 497c297 commit a65fad0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cargo/ops/cargo_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pub fn install(root: Option<&str>,
let root = resolve_root(root, opts.config)?;
let map = SourceConfigMap::new(opts.config)?;

if krates.is_empty() {
install_one(root, map, None, source_id, vers, opts, force)
if krates.len() <= 1 {
install_one(root, map, krates.into_iter().next(), source_id, vers, opts, force)
} else {
let mut success = vec![];
let mut errors = vec![];
Expand Down Expand Up @@ -97,6 +97,7 @@ fn install_one(root: Filesystem,

static ALREADY_UPDATED: AtomicBool = ATOMIC_BOOL_INIT;
let needs_update = !ALREADY_UPDATED.load(Ordering::SeqCst);
ALREADY_UPDATED.store(true, Ordering::SeqCst);

let config = opts.config;

Expand Down Expand Up @@ -124,8 +125,6 @@ fn install_one(root: Filesystem,
specify alternate source".into()))?
};

ALREADY_UPDATED.store(true, Ordering::SeqCst);

let mut td_opt = None;
let overidden_target_dir = if source_id.is_path() {
None
Expand Down

0 comments on commit a65fad0

Please sign in to comment.