buildr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ittay Dror <ittay.d...@gmail.com>
Subject bug in ArchiveTask#needed? ?
Date Mon, 03 Nov 2008 12:57:50 GMT
this is some of the code of the method:

    most_recent = @paths.collect { |name, path| path.sources }.flatten

        each { |src| File.directory?(src) ? 
Util.recursive_with_dot_files(src) | [src] : src }.flatten.
        select { |file| File.exist?(file) }.collect { |file| 
File.stat(file).mtime }.max
      File.stat(name).mtime < (most_recent || Rake::EARLY) || super


isn't the 'each' call effectively a noop (being that each just returns 
the same array)?

ittay

-- 
--
Ittay Dror <ittay.dror@gmail.com>



Mime
View raw message