mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
recipe{desc,parse}.py: BB_ENV_PASSTHROUGH_ADDITIONS
ERROR: Variable BB_ENV_EXTRAWHITE has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS ERROR: Variable BB_ENV_EXTRAWHITE from the shell environment has been renamed to BB_ENV_PASSTHROUGH_ADDITIONS ERROR: Exiting to allow enviroment variables to be corrected Replace BB_ENV_EXTRAWHITE with new variable BB_ENV_PASSTHROUGH_ADDITIONS In order to be backward compatible with older branches, we must first check for the presence of the bitbake commit which implemented the variable name change, using layerindex.utils.is_commit_ancestor(). Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
parent
ee30a2e037
commit
242db27bf9
|
@ -39,6 +39,7 @@ def main():
|
|||
from layerindex.models import LayerItem, Recipe
|
||||
from django.db import transaction
|
||||
import settings
|
||||
from layerindex.utils import is_commit_ancestor
|
||||
|
||||
setup_environ(settings)
|
||||
|
||||
|
@ -62,7 +63,12 @@ def main():
|
|||
print("Unable to find bitbake by searching BITBAKEDIR, specified path '%s' or its parent, or PATH" % basepath)
|
||||
sys.exit(1)
|
||||
|
||||
# Commit "bitbake: Rename environment filtering variables"
|
||||
bb_var_rename_commit = "87104b6a167188921da157c7dba45938849fb22a"
|
||||
# Skip sanity checks
|
||||
if is_commit_ancestor(bitbakepath, bb_var_rename_commit, logger=logger):
|
||||
os.environ['BB_ENV_PASSTHROUGH_ADDITIONS'] = 'DISABLE_SANITY_CHECKS'
|
||||
else:
|
||||
os.environ['BB_ENV_EXTRAWHITE'] = 'DISABLE_SANITY_CHECKS'
|
||||
os.environ['DISABLE_SANITY_CHECKS'] = '1'
|
||||
|
||||
|
|
|
@ -35,7 +35,12 @@ def init_parser(settings, branch, bitbakepath, enable_tracking=False, nocheckout
|
|||
bitbake_ref = 'origin/%s' % branch.bitbake_branch
|
||||
utils.checkout_repo(bitbakepath, bitbake_ref, logger=logger)
|
||||
|
||||
# Commit "bitbake: Rename environment filtering variables"
|
||||
bb_var_rename_commit = "87104b6a167188921da157c7dba45938849fb22a"
|
||||
# Skip sanity checks
|
||||
if utils.is_commit_ancestor(bitbakepath, bb_var_rename_commit, logger=logger):
|
||||
os.environ['BB_ENV_PASSTHROUGH_ADDITIONS'] = 'DISABLE_SANITY_CHECKS'
|
||||
else:
|
||||
os.environ['BB_ENV_EXTRAWHITE'] = 'DISABLE_SANITY_CHECKS'
|
||||
os.environ['DISABLE_SANITY_CHECKS'] = '1'
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user