Project

General

Profile

Bug #13627 ยป 0001-created.rid-use-SOURCE_DATE_EPOCH.patch

possible patch - bmwiedemann (Bernhard M. Wiedemann), 06/03/2017 04:10 AM

View differences:

lib/rdoc/rdoc.rb
232 232

  
233 233
  def update_output_dir(op_dir, time, last = {})
234 234
    return if @options.dry_run or not @options.update_output_dir
235
    unless ENV['SOURCE_DATE_EPOCH'].nil?
236
      time = Time.at(ENV['SOURCE_DATE_EPOCH'].to_i).gmtime
237
    end
235 238

  
236 239
    open output_flag_file(op_dir), "w" do |f|
237 240
      f.puts time.rfc2822
238
-