aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/tools
AgeCommit message (Collapse)Author
2016-10-18layerindexer: Add layer recommends supportLiam R. Howlett
Parse layer.conf and add dependencies that are not required from LAYERRECOMMENDS_<name>. Update the layerindex/template to support recommends. Uses bitbake parsing code & checks versions. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com> Added associated migration. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2016-10-18layerindex: Detect dependencies from layer.conf filesLiam R. Howlett
Read dependencies from layer.conf and try to create the LayerDependency entry by looking up the correct database object. Dependencies are found by layer name only - no collection support. layer.conf parsing is handled by the bitbake code. Once all layers are added, the dependencies have to be rechecked in case the layers are not added in order. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-10-18layerindex/tools/import_project: Add import_projectLiam R. Howlett
import_project will scan through a project and find any layer and add it to the database by calling import_layer on each layer. This differs from import_layer as it tires to figure out the remote url and uses the subdirectory (if one exists) as the name. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-10-18layerindex: Add distro to web interface and modelLiam R. Howlett
Add the distros to the index. This looks a lot like the machines and allows users to search for a particular distro. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com> Added associated migration. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2016-10-18layerindex/tools/import_layer.py: Avoid failing if there is any layer to addLiam R. Howlett
Subdirectories are scanned when adding layers. If any of the subdirectories or root directory layers already exist in the database, then the addition fails. This changes that behaviour to report the failure as a warning and remove it from the list. That way, if a repo has a new layer added it can be rescanned without issue. Layers being rescanned are checked against the vcs_url to ensure there is not a name collision. A name collision without the same vcs_url will still produce a hard failure. Note that multiple layers with the same vcs_url are supported in the error reporting even though this should never happen. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-10-18layerindex/tools/import_layer.py: Sanitize layer nameLiam R. Howlett
Django will produce a cryptic error message if layers are added with invalid names. Sanitize the layer names when trying to add them. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-10-18import_layer: Add --actual-branch optionLiam R. Howlett
Allow users to set actual-branch from the command line import of layers. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
2016-09-20Fix import script for Django 1.8 & Python 3Paul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-08-31update_layer.py: fix up for bitbake API changePaul Eggleton
The multiconfig changes broke the calls here to loadDataFull(). To avoid this being an issue in future, make use of tinfoil's new parse_recipe_file() function (if available) to isolate the code here from any future changes to bitbake's internal code. Part of the fix for [YOCTO #10192]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2016-06-12Support (and require) Python 3Paul Eggleton
We need to be able to support Python 3 so that we can parse master of OE-Core with bitbake (which now requires it). This now means the interface itself and the update script require Python 3.4+. Part of the implementation for [YOCTO #9704]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2014-06-12tools/import_layer: fix errors in maintainer scraping codePaul Eggleton
* Fix "sre_constants.error: nothing to repeat" error due to .* inside group made optional with ? in regex * Avoid error if maintainer responsibility is not specified Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2014-02-23Add layer import scriptPaul Eggleton
Adds a simple way to add a new layer to the database in an automated manner, given only a URL and optionally a name and subdirectory. If no subdirectory is given, the root and all first-level subdirectories that contain conf/layer.conf will be created as layers. Guesses will be made as to the right values for certain fields, by looking at README/MAINTAINERS files and github repository information. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-20layerindex/tools: fix permissionsPaul Eggleton
These should all have the execute bit set. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-05Ensure logger is passed into runcmd function or use sys.stderr.writePaul Eggleton
Otherwise it might not be defined when an error.needs to be printed. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-09-05Add support for importing OE-Classic recipesPaul Eggleton
Add a script for doing a one-time import of OE-Classic recipe information, so comparisons against OE-Core can be performed; this is stored using a new ClassicRecipe model supporting additional fields for tracking migration status. The migration status fields can be updated as well as viewed and summarised in graph format. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2013-08-11Move layers import script to tools subdirectoryPaul Eggleton
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>