提交 a22f8bf9 编写于 作者: I Ivan Pozdeev 提交者: Olli-Pekka Heinisuo

JSON format change for formula without any bottles

上级 8e23e986
......@@ -285,7 +285,7 @@ function _brew_parse_package_info {
revision=data["revision"]
# in bottle''s json, revision is included into version; here, they are separate
print data["versions"]["stable"]+("_"+str(revision) if revision else "")
bottle_data=data["bottle"]["stable"]
bottle_data=data["bottle"].get("stable",{"rebuild":"","files":{}})
print bottle_data["rebuild"]
print bottle_data["files"].get(sys.argv[2],{"sha256":"!?"})["sha256"] #prevent losing trailing blank line to command substitution
' \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册