diff options
Diffstat (limited to 'lib/bb/cookerdata.py')
-rw-r--r-- | lib/bb/cookerdata.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index c5fdf6637..50259a9a0 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -292,6 +292,8 @@ class CookerDataBuilder(object): parselog.debug(2, "Adding layer %s", layer) if 'HOME' in approved and '~' in layer: layer = os.path.expanduser(layer) + if layer.endswith('/'): + layer = layer.rstrip('/') data.setVar('LAYERDIR', layer) data = parse_config_file(os.path.join(layer, "conf", "layer.conf"), data) data.expandVarref('LAYERDIR') |