Skip to content

Commit

Permalink
Add 'no confirmation' flag to providers, write provider info to STDERR
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jul 6, 2017
1 parent 786cc55 commit eacb8c8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/dependencies.jl
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ function generate_steps(dep::LibraryDependency,h::AptGet,opts)
end
sudo = get(opts, :sudo, has_sudo[]) ? `sudo` : ``
@build_steps begin
println("Installing dependency $(h.package) via `$(sudoname(sudo))apt-get install $(h.package)`:")
`$sudo apt-get install $(h.package)`
info("Installing dependency $(h.package) via `$(sudoname(sudo))apt-get install $(h.package)`:")
`$sudo apt-get install -y $(h.package)`
reread_sonames
end
end
Expand All @@ -437,8 +437,8 @@ function generate_steps(dep::LibraryDependency,h::Yum,opts)
end
sudo = get(opts, :sudo, has_sudo[]) ? `sudo` : ``
@build_steps begin
println("Installing dependency $(h.package) via `$(sudoname(sudo))yum install $(h.package)`:")
`$sudo yum install $(h.package)`
info("Installing dependency $(h.package) via `$(sudoname(sudo))yum install -y $(h.package)`:")
`$sudo yum install -y $(h.package)`
reread_sonames
end
end
Expand All @@ -449,8 +449,8 @@ function generate_steps(dep::LibraryDependency,h::Pacman,opts)
end
sudo = get(opts, :sudo, has_sudo[]) ? `sudo` : ``
@build_steps begin
println("Installing dependency $(h.package) via `$(sudoname(sudo))pacman -S --needed $(h.package)`:")
`$sudo pacman -S --needed $(h.package)`
info("Installing dependency $(h.package) via `$(sudoname(sudo))pacman -S --needed $(h.package)`:")
`$sudo pacman -S --needed $(h.package) --noconfirm`
reread_sonames
end
end
Expand All @@ -461,8 +461,8 @@ function generate_steps(dep::LibraryDependency,h::Zypper,opts)
end
sudo = get(opts, :sudo, has_sudo[]) ? `sudo` : ``
@build_steps begin
println("Installing dependency $(h.package) via `$(sudoname(sudo))zypper install $(h.package)`:")
`$sudo zypper install $(h.package)`
info("Installing dependency $(h.package) via `$(sudoname(sudo))zypper install $(h.package)`:")
`$sudo zypper install -n $(h.package)`
reread_sonames
end
end
Expand All @@ -473,7 +473,7 @@ function generate_steps(dep::LibraryDependency, p::BSDPkg, opts)
end
sudo = get(opts, :sudo, has_sudo[]) ? `sudo` : ``
@build_steps begin
println("Installing dependency $(p.package) via `$(sudoname(sudo))pkg install -y $(p.package)`:`")
info("Installing dependency $(p.package) via `$(sudoname(sudo))pkg install -y $(p.package)`:`")
`$sudo pkg install -y $(p.package)`
reread_sonames
end
Expand Down

0 comments on commit eacb8c8

Please sign in to comment.