1 def read_available(filename
):
3 Parses the output of bitbake -s
4 minus the first few lines
10 if line
.startswith("NOTE: ") or line
.startswith("Parsing .bb") or line
.startswith("done."):
13 # str.split can not be used as we have multiple whitespace
14 split
= line
.split(" ", 1)
16 rest
= split
[1].strip()
18 # we might have a latest package...
19 split
= rest
.split(" ", 1)
21 version
= split
[1].strip()
25 packages
[package
] = version