Skip to content

Commit

Permalink
Add lastUpdated field to stub universe generation tooling (#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
takirala authored Oct 24, 2019
1 parent 8f01567 commit 4bcdc1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/universe/package_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ def _generate_packages_dict(self, package_files):
package_files[_package_json_filename], object_pairs_hook=collections.OrderedDict
)
package_json["releaseVersion"] = 0
# `lastUpdated` is supported for all packages v3 and above
package_json["lastUpdated"] = round(time.time())

config_json = package_files.get(_config_json_filename)
if config_json is not None:
Expand Down

0 comments on commit 4bcdc1f

Please sign in to comment.