Browse Source

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>
Paul Eggleton 8 years ago
parent
commit
ddcaf8950a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      bin/bitbake-layers

+ 1 - 0
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 += '/'