Permalink
Browse files

Don't print an empty line if all requirements are satisfied

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
jacknagel committed Aug 15, 2012
1 parent 50090dd commit ec77845bf6e028bfd257370abbb8c506bae71ee5
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/formula_installer.rb
@@ -68,7 +68,7 @@ def install
unless ignore_deps
needed_reqs = f.recursive_requirements.reject { |r| r.satisfied? }
- puts needed_reqs.map { |r| r.message } * "\n"
+ puts needed_reqs.map { |r| r.message } * "\n" unless needed_reqs.empty?
unsatisfied_fatals = needed_reqs.select { |r| r.fatal? }
unless unsatisfied_fatals.empty?
raise UnsatisfiedRequirements.new(f, unsatisfied_fatals)

0 comments on commit ec77845

Please sign in to comment.