lib/autobuild/packages/genom.rb in autobuild-0.6.6 vs lib/autobuild/packages/genom.rb in autobuild-0.6.7

- old
+ new

@@ -46,10 +46,10 @@ Open3.popen3("#{cpp} #{cpp_options.join(" ")} #{srcdir}/#{name}.gen") do |cin, out, err| out.each_line { |line| if line =~ /^\s*(codels_)?requires\s*:\s*([\w\-]+(?:\s*,\s*[\w\-]+)*);/ # Remove the codels_requires lines if -a is given to genom unless $1 == "codels_" && apionly - $2.split(/, /).each { |name| depends_on name } + $2.split(/,/).each { |name| depends_on name.strip } end elsif line =~ /^\s*(?:codels_)?requires/ # Check that the regexp is not too strict STDERR.puts "failed to match #{line}" end