lib/autoproj/autobuild.rb in autoproj-1.7.12 vs lib/autoproj/autobuild.rb in autoproj-1.7.13
- old
+ new
@@ -298,10 +298,10 @@
if !Dir.enum_for(:glob, File.join(full_path, "*.orogen")).to_a.empty?
"orogen_package"
elsif File.file?(File.join(full_path, "CMakeLists.txt"))
"cmake_package"
elsif File.directory?(File.join(full_path, "lib")) &&
- !Dir.enum_for(:glob, File.join(full_path, "*.rb")).to_a.empty?
+ Find.enum_for(:find, File.join(full_path, "lib")).any? { |path| path =~ /\.rb$/ }
"ruby_package"
end
end
end