[gnome-continuous-yocto/gnomeostree-3.28-rocko: 709/8267] bitbake: cookerdata: print an error if layer dir does not exist



commit 2660ddeb2d47bede562136cbb62b0495b4e1e1c5
Author: Markus Lehtonen <markus lehtonen linux intel com>
Date:   Thu May 26 11:05:43 2016 +0300

    bitbake: cookerdata: print an error if layer dir does not exist
    
    Makes it easier for user to identify problems, e.g. typos, in BBLAYERS.
    
    [YOCTO #9507]
    
    (Bitbake rev: 32c9689e4b492dc5821749e284e397d717af2a6c)
    
    Signed-off-by: Markus Lehtonen <markus lehtonen linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/lib/bb/cookerdata.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 1615db5..dc34efe 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -292,6 +292,10 @@ class CookerDataBuilder(object):
             data = bb.data.createCopy(data)
             approved = bb.utils.approved_variables()
             for layer in layers:
+                if not os.path.isdir(layer):
+                    parselog.critical("Layer directory '%s' does not exist! "
+                                      "Please check BBLAYERS in %s" % (layer, layerconf))
+                    sys.exit(1)
                 parselog.debug(2, "Adding layer %s", layer)
                 if 'HOME' in approved and '~' in layer:
                     layer = os.path.expanduser(layer)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]