Skip to content

Commit a22f8bf

Browse files
native-apiskvark
authored andcommitted
JSON format change for formula without any bottles
1 parent 8e23e98 commit a22f8bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

travis_osx_brew_cache.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ function _brew_parse_package_info {
285285
revision=data["revision"]
286286
# in bottle''s json, revision is included into version; here, they are separate
287287
print data["versions"]["stable"]+("_"+str(revision) if revision else "")
288-
bottle_data=data["bottle"]["stable"]
288+
bottle_data=data["bottle"].get("stable",{"rebuild":"","files":{}})
289289
print bottle_data["rebuild"]
290290
print bottle_data["files"].get(sys.argv[2],{"sha256":"!?"})["sha256"] #prevent losing trailing blank line to command substitution
291291
' \

0 commit comments

Comments
 (0)