Only pass a single argument to Kernel.exec.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 14 Aug 2006 16:08:37 +0000 (18:08 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:45 +0000 (19:33 +0200)
rake/configuretask.rb

index 0cad7ca23116b40ad693588557b7ec49399fc861..2078da41a1eada92eb991b0237d91293732750c4 100644 (file)
@@ -205,14 +205,15 @@ module Rake
                        def initialize(name, opts = {})
                                super
 
-                               @command = "pkg-config --silence-errors"
+                               @command = "pkg-config"
                        end
 
                        protected
                        def lookup_flags(f)
                                f = :modversion if f == :version
 
-                               tmp = `#{@command} --#{f} #{@name}`.strip.tr("\n", "/")
+                               tmp = `#{@command} --silence-errors --#{f} #{@name}`.
+                                     strip.tr("\n", "/")
                                $?.exitstatus.zero? ? tmp : nil
                        end
                end