summaryrefslogtreecommitdiffstats
path: root/bin/bitbake-layers
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-08-19 14:20:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-19 17:59:32 +0100
commitddcaf8950a0b1cc74806e1ad7b49a1de0ea0d2b1 (patch)
tree1b9d4c2ee7039d11e57d33d9d2ef1bffd9154aa6 /bin/bitbake-layers
parent24035c1daad5a904c3372d21d44191ee8182338f (diff)
downloadbitbake-contrib-ddcaf8950a0b1cc74806e1ad7b49a1de0ea0d2b1.tar.gz
bitbake-layers: ensure we exit if BBLAYERS_LAYERINDEX_URL is not set
We were printing an error here, but not exiting. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake-layers')
-rwxr-xr-xbin/bitbake-layers1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers
index 5518c6364..1c0d520d1 100755
--- a/bin/bitbake-layers
+++ b/bin/bitbake-layers
@@ -265,6 +265,7 @@ Removes the specified layer from bblayers.conf
apiurl = self.bbhandler.config_data.getVar('BBLAYERS_LAYERINDEX_URL', True)
if not apiurl:
logger.error("Cannot get BBLAYERS_LAYERINDEX_URL")
+ return 1
else:
if apiurl[-1] != '/':
apiurl += '/'