Skip to content

Commit

Permalink
github_release_refs.py add newer github MIME (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp authored Apr 7, 2021
1 parent 9358b55 commit 9319aab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 18 additions & 1 deletion diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"local_config_cc_toolchains",
"local_config_sh",
"local_config_xcode",
"local_jdk",
"remote_coverage_tools",
"remote_java_tools_darwin",
"remote_java_tools_linux",
Expand All @@ -23,8 +24,16 @@
"remotejdk10_win",
"remotejdk11_linux",
"remotejdk11_linux_aarch64",
"remotejdk11_linux_ppc64le",
"remotejdk11_linux_s390x",
"remotejdk11_macos",
"remotejdk11_win",
"remotejdk14_linux",
"remotejdk14_macos",
"remotejdk14_win",
"remotejdk15_linux",
"remotejdk15_macos",
"remotejdk15_win",
"remotejdk_linux",
"remotejdk_linux_aarch64",
"remotejdk_macos",
Expand Down Expand Up @@ -52,7 +61,15 @@
continue
a[name] = x

for name in sorted(set(list(b.keys()) + list(a.keys()))):
keys = sorted(set(list(b.keys()) + list(a.keys())))
mismatched = [k for k in keys if k not in b or k not in a]
if len(mismatched) != 0:
print("Unexpected keys:")
print(mismatched)
print("add these to IGNORED maybe?")
exit(1)

for name in keys:
xb = b[name]
xa = a[name]
d = {k: xa[k] for k in set(xa) - set(xb)}
Expand Down
1 change: 1 addition & 0 deletions github_release_refs.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

ty = {
'application/x-compressed': 'tar.gz',
'application/x-compressed-tar': 'tar.gz',
'application/x-zip-compressed': 'zip',
'application/zip': 'zip',
}[asset['content_type']]
Expand Down

0 comments on commit 9319aab

Please sign in to comment.