Skip to content
Snippets Groups Projects
Commit b40b072e authored by Uladzislau Shablinski's avatar Uladzislau Shablinski Committed by Xu Cheng
Browse files

tab: fix Tab.for_formula versions (#687)

versions should be initialized even if formula is not installed
parent 1e76a207
No related branches found
No related tags found
No related merge requests found
......@@ -138,6 +138,11 @@ class Tab < OpenStruct
"path" => f.path.to_s,
"tap" => f.tap ? f.tap.name : f.tap,
"spec" => f.active_spec_sym.to_s,
"versions" => {
"stable" => f.stable ? f.stable.version.to_s : nil,
"devel" => f.devel ? f.devel.version.to_s : nil,
"head" => f.head ? f.head.version.to_s : nil,
}
}
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment