dev-cmd/bottle: include installed_size in metadata
This commit is contained in:
parent
72dec98721
commit
253db8def2
@ -661,6 +661,7 @@ module Homebrew
|
||||
all_files = keg.find
|
||||
.select(&:file?)
|
||||
.map { |path| path.to_s.delete_prefix(keg_prefix) }
|
||||
installed_size = keg.disk_usage
|
||||
end
|
||||
|
||||
json = {
|
||||
@ -693,6 +694,7 @@ module Homebrew
|
||||
"tab" => tab.to_bottle_hash,
|
||||
"path_exec_files" => path_exec_files,
|
||||
"all_files" => all_files,
|
||||
"installed_size" => installed_size,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@ -394,6 +394,7 @@ class GitHubPackages
|
||||
"sh.brew.bottle.digest" => tar_gz_sha256,
|
||||
"sh.brew.bottle.glibc.version" => glibc_version,
|
||||
"sh.brew.bottle.size" => local_file_size.to_s,
|
||||
"sh.brew.bottle.installed_size" => tag_hash["installed_size"].to_s,
|
||||
"sh.brew.tab" => tab.to_json,
|
||||
"sh.brew.path_exec_files" => path_exec_files_string,
|
||||
}.compact_blank
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user