In the list_obj function, we can't check if the requested object is 'in', the index data -- as it's actually an attribute of the object. Move to hasattr. The remaining items were incorrect usages of 'type' for class type comparison. Instead move to 'isinstance'. Remaing 'type' comparisons are still valid. The code was also reordered slightly to avoid a lot of: if not isinstance(x, y): ... else: ... reordering it removes the not and makes the code slightly easier to read. (Bitbake rev: cddea4282820ef10ad4863d87327891ea9383916) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
The layerindexlib module is designed to permit programs to work directly with layer index information. (See layers.openembedded.org...)
The layerindexlib module includes a plugin interface that is used to extend the basic functionality. There are two primary plugins available: restapi and cooker.
The restapi plugin works with a web based REST Api compatible with the layerindex-web project, as well as the ability to store and retried a the information for one or more files on the disk.
The cooker plugin works by reading the information from the current build project and processing it as if it were a layer index.
TODO:
init.py: Implement local on-disk caching (using the rest api store/load) Implement layer index style query operations on a combined index
common.py: Stop network access if BB_NO_NETWORK or allowed hosts is restricted
cooker.py: Cooker - Implement recipe parsing