Merge pull request #11081 from sjackman/sj/bottle-date-mtime

bottle: Set date to the mtime of the bottle file
This commit is contained in:
Mike McQuaid 2021-04-09 09:26:01 +01:00 committed by GitHub
commit 7a0de03d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,7 @@ module Homebrew
"prefix" => bottle.prefix,
"cellar" => bottle.cellar.to_s,
"rebuild" => bottle.rebuild,
"date" => Time.now.strftime("%F"),
"date" => Pathname(local_filename).mtime.strftime("%F"),
"tags" => {
bottle_tag.to_s => {
"filename" => filename.bintray,