Skip to content

Commit 814426c

Browse files
zehasorah
authored andcommitted
rdoc: build reproducible documentation
- sort input filenames - provide a fixed timestamp to the gzip compression Signed-off-by: Antonio Terceiro <terceiro@debian.org> Signed-off-by: Christian Hofstaedtler <zeha@debian.org> Gbp-Pq: Name rdoc-build-reproducible-documentation.patch
1 parent 4a10bb0 commit 814426c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdoc/generator/json_index.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def generate_gzipped
178178
debug_msg "Writing gzipped search index to %s" % outfile
179179

180180
Zlib::GzipWriter.open(outfile) do |gz|
181-
gz.mtime = File.mtime(search_index_file)
181+
gz.mtime = -1
182182
gz.orig_name = search_index_file.basename.to_s
183183
gz.write search_index
184184
gz.close
@@ -196,7 +196,7 @@ def generate_gzipped
196196
debug_msg "Writing gzipped file to %s" % outfile
197197

198198
Zlib::GzipWriter.open(outfile) do |gz|
199-
gz.mtime = File.mtime(dest)
199+
gz.mtime = -1
200200
gz.orig_name = dest.basename.to_s
201201
gz.write data
202202
gz.close

0 commit comments

Comments
 (0)