Mark Gemspec-reproducible change fixing #784225, too
authorChristian Hofstaedtler <zeha@debian.org>
Tue, 10 Oct 2017 18:07:11 +0000 (15:07 -0300)
committerAntonio Terceiro <terceiro@debian.org>
Sat, 30 Dec 2017 13:50:04 +0000 (13:50 +0000)
I think the UTC date change will fix the Multi-Arch not-same file issue,
too.

Signed-off-by: Antonio Terceiro <terceiro@debian.org>
Signed-off-by: Christian Hofstaedtler <zeha@debian.org>
Gbp-Pq: Name 0003-Mark-Gemspec-reproducible-change-fixing-784225-too.patch

lib/rubygems/specification.rb

index efc08c4738afcfee23bc457174711b56dbb98991..890c7c5f7e01004c21c1658543292a77e7d6b468 100644 (file)
@@ -1786,7 +1786,9 @@ class Gem::Specification < Gem::BasicSpecification
                 raise(Gem::InvalidSpecificationException,
                       "invalid date format in specification: #{date.inspect}")
               end
-            when Time, DateLike then
+            when Time then
+              Time.utc(date.utc.year, date.utc.month, date.utc.day)
+            when DateLike then
               Time.utc(date.year, date.month, date.day)
             else
               TODAY