]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake-layers: ensure we exit if BBLAYERS_LAYERINDEX_URL is not set
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 19 Aug 2015 13:20:08 +0000 (14:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Aug 2015 16:59:32 +0000 (17:59 +0100)
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>
bin/bitbake-layers

index 5518c63641f12e816482eb3dc468e65955b5ad16..1c0d520d10225ce659e0b3d7ae3a2e5168bf025e 100755 (executable)
@@ -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 += '/'