[yocto] [layerindex-web][PATCH 02/10] layerindex/tools/import_layer.py: Sanitize layer name.

2016-09-26 Thread Liam 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.howl...@windriver.com> --- layerindex/tools/import_layer.py | 6 ++ 1 file changed, 6 insertions(+) diff

[yocto] [layerindex-web][PATCH 04/10] layerindex/utils: Update runcmd to decode binary strings to strings.

2016-09-26 Thread Liam R. Howlett
Convert binary strings to strings and strip leading/trailing whitespace prior to returning errors and output. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/utils.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layerindex/util

[yocto] [layerindex-web][PATCH 09/10] layerindexer: Add layer recommends support

2016-09-26 Thread Liam R. Howlett
Parse layer.conf and add dependencies that are not required from LAYERRECOMMENDS_. Update the layerindex/template to support recommends. Uses bitbake parsing code & checks versions. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/models.py

[yocto] [layerindex-web][PATCH 06/10] layerindex/tools/import_project: Add import_project

2016-09-26 Thread Liam 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.h

[yocto] [layerindex-web][PATCH 10/10] recipeparse: remove unnecessary else statement.

2016-09-26 Thread Liam R. Howlett
Code clean up. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/recipeparse.py | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py index 8a63117..8cf75a1 100644 --- a/laye

[yocto] [layerindex-web][PATCH 03/10] layerindex/tools/import_layer.py: Avoid failing if there is any layer to add.

2016-09-26 Thread Liam R. Howlett
though this should never happen. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/tools/import_layer.py | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/layerindex/tools/import_layer.py b/layerindex/tools/import_layer.py

[yocto] [layerindex-web][PATCH 00/10] Add Distribution, dependency and recommends detection, and import_project

2016-09-26 Thread Liam R. Howlett
name to determine dependencies and recommends. - Adds import_project to simplify pulling all layers and openembedded-core to a layer index. Liam R. Howlett (10): import_layer: Add --actual-branch option layerindex/tools/import_layer.py: Sanitize layer name. layerindex/tools/import_layer.py: A

[yocto] [layerindex-web][PATCH 01/10] import_layer: Add --actual-branch option

2016-09-26 Thread Liam R. Howlett
Allow users to set actual-branch from the command line import of layers. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/tools/import_layer.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layerindex/tools/import_layer.py b/laye

[yocto] [layerindex-web][PATCH 08/10] layerindex: Add collection and version to layerbranch

2016-09-26 Thread Liam R. Howlett
-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/models.py | 2 ++ layerindex/tools/import_layer.py | 3 --- layerindex/update.py | 1 + layerindex/update_layer.py | 25 +++-- layerindex/utils.py

[yocto] [layerindex-web][PATCH 07/10] layerindex: Detect dependencies from layer.conf files

2016-09-26 Thread Liam 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. Signed-off-by: Liam R. Howlett <liam.h

Re: [yocto] [layerindex-web][PATCH 08/10] layerindex: Add collection and version to layerbranch

2016-10-04 Thread Liam R. Howlett
* Paul Eggleton <paul.eggle...@linux.intel.com> [161003 18:54]: > On Mon, 26 Sep 2016 14:25:36 Liam R. Howlett wrote: > > Collection and version will be pulled from the layer.conf if it exists > > and dependencies will be resolved by first checking for layers with th

[yocto] [layerindex-web][PATCH v2 01/12] import_layer: Add --actual-branch option

2016-10-07 Thread Liam R. Howlett
Allow users to set actual-branch from the command line import of layers. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/tools/import_layer.py | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/layerindex/tools/import_layer.py b/laye

[yocto] [layerindex-web][PATCH v2 05/12] layerindex: Add distro to web interface and model.

2016-10-07 Thread Liam 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.howl...@windriver.com> --- layerindex/admin.py| 11 ++ layerindex/models.py | 14 +++ laye

[yocto] [layerindex-web][PATCH v2 03/12] layerindex/tools/import_layer.py: Avoid failing if there is any layer to add.

2016-10-07 Thread Liam R. Howlett
though this should never happen. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/tools/import_layer.py | 20 ++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/layerindex/tools/import_layer.py b/layerindex/tools/import_layer.py index f

[yocto] [layerindex-web][PATCH v2 08/12] layerindex: Detect dependencies from layer.conf files

2016-10-07 Thread Liam R. Howlett
to be rechecked in case the layers are not added in order. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/layerconfparse.py | 50 layerindex/tools/import_layer.py | 11 ++ layerindex/update.py | 41 +++- laye

[yocto] [layerindex-web][PATCH v2 09/12] layerindex: Add collection and version to layerbranch

2016-10-07 Thread Liam R. Howlett
-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/models.py | 2 ++ layerindex/update_layer.py | 1 + layerindex/utils.py| 20 ++-- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/layerindex/models.py b/layerindex/models.py index 2

[yocto] [layerindex-web][PATCH v2 10/12] layerindexer: Add layer recommends support

2016-10-07 Thread Liam R. Howlett
Parse layer.conf and add dependencies that are not required from LAYERRECOMMENDS_. Update the layerindex/template to support recommends. Uses bitbake parsing code & checks versions. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/models.py

[yocto] [layerindex-web][PATCH v2 11/12] recipeparse: remove unnecessary else statement.

2016-10-07 Thread Liam R. Howlett
Code clean up. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/recipeparse.py | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/layerindex/recipeparse.py b/layerindex/recipeparse.py index 91a083b..dd85bc3 100644 --- a/laye

[yocto] [layerindex-web][PATCH v2 02/12] layerindex/tools/import_layer.py: Sanitize layer name.

2016-10-07 Thread Liam 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.howl...@windriver.com> --- layerindex/tools/import_layer.py | 6 ++ 1 file changed, 6 insertions(+) diff

[yocto] [layerindex-web][PATCH v2 00/12] Add Distro, dependency and recommends detection, and import_project

2016-10-07 Thread Liam R. Howlett
mine dependencies and recommends. - Adds import_project to simplify pulling all layers and openembedded-core into a layer index. Liam R. Howlett (11): import_layer: Add --actual-branch option layerindex/tools/import_layer.py: Sanitize layer name. layerindex/tools/import_layer.py: A

[yocto] [layerindex-web][PATCH v2 06/12] layerindex/tools/import_project: Add import_project

2016-10-07 Thread Liam 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.h

[yocto] [layerindex-web][PATCH v2 07/12] layerindex/recipeparse.py: refactor setup_tinfoil, checkout_layer_branch, parse_layer_conf to utils.py

2016-10-07 Thread Liam R. Howlett
Move functions to utils to be used by other classes. _ Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/bulkchange.py | 4 ++-- layerindex/recipeparse.py | 39 +++--- layerindex/utils.py

[yocto] [layerindex-web][PATCH v2 04/12] layerindex/utils: Update runcmd to decode binary strings to strings.

2016-10-07 Thread Liam R. Howlett
Convert binary strings to strings and strip leading/trailing whitespace prior to returning errors and output. Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/utils.py | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/layerindex/util

[yocto] [layerindex-web][PATCH v2 12/12] layerindex/update_layer.py: Preserve the recipedependency files

2016-10-07 Thread Liam R. Howlett
From: Mark Hatle <mark.ha...@windriver.com> In order to keep primary keys from constantly changing, preverse the exist keys as much as possible. Signed-off-by: Mark Hatle <mark.ha...@windriver.com> Signed-off-by: Liam R. Howlett <liam.howl...@windriver.com> --- layerindex/up