blob: b7faa58655b2b4fffd4a9e7a9fbece8991b61904 [file] [log] [blame]
Patrick Williams93c203f2021-10-06 16:15:23 -05001From: Christian Hofstaedtler <zeha@debian.org>
2Date: Tue, 10 Oct 2017 15:07:11 -0300
3Subject: Mark Gemspec-reproducible change fixing #784225, too
4
5I think the UTC date change will fix the Multi-Arch not-same file issue,
6too.
7
8Upstream-Status: Backport [debian]
9
10Signed-off-by: Antonio Terceiro <terceiro@debian.org>
11Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
12---
13 lib/rubygems/specification.rb | 4 +++-
14 1 file changed, 3 insertions(+), 1 deletion(-)
15
16--- a/lib/rubygems/specification.rb
17+++ b/lib/rubygems/specification.rb
18@@ -1695,7 +1695,9 @@
19 raise(Gem::InvalidSpecificationException,
20 "invalid date format in specification: #{date.inspect}")
21 end
22- when Time, DateLike then
23+ when Time then
24+ Time.utc(date.utc.year, date.utc.month, date.utc.day)
25+ when DateLike then
26 Time.utc(date.year, date.month, date.day)
27 else
28 TODAY