Skip to content

Commit

Permalink
Correctly report APR/APU as not found if they're not found, instead o…
Browse files Browse the repository at this point in the history
…f wrongly reporting that they're found. Fix typo.
  • Loading branch information
FooBarWidget committed Jan 23, 2009
1 parent 01d444e commit f7f042c
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/passenger/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,11 @@ module Dependencies # :nodoc: all
APR_DevHeaders = Dependency.new do |dep|
dep.name = "Apache Portable Runtime (APR) development headers"
dep.define_checker do |result|
result.found(APR_CONFIG)
if APR_CONFIG
result.found(APR_CONFIG)
else
result.not_found
end
end
if RUBY_PLATFORM =~ /linux/
case LINUX_DISTRO
Expand All @@ -278,9 +282,13 @@ module Dependencies # :nodoc: all
end

APU_DevHeaders = Dependency.new do |dep|
dep.name = "Apache Portable Runtime Utility (APR) development headers"
dep.name = "Apache Portable Runtime Utility (APU) development headers"
dep.define_checker do |result|
result.found(APU_CONFIG)
if APU_CONFIG
result.found(APU_CONFIG)
else
result.not_found
end
end
dep.website = "http://httpd.apache.org/"
dep.website_comments = "APR Utility is an integrated part of Apache."
Expand Down

0 comments on commit f7f042c

Please sign in to comment.