File "/scratch/cedar/toaster-test/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py", line 71, in _import_layer_config bvo.giturl = _read_git_url_from_local_repository(bvi['giturl']) File "/scratch/cedar/toaster-test/poky/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py", line 62, in _read_git_url_from_local_repository raise Exception("Error while looking for remote \"%s\" in \"s\"" % (remote_name, lo.local_path)) NameError: free variable 'lo' referenced before assignment in enclosing scope
There seems to be an issue trying to figure out remotes from the local git repo, and it fails to raise the proper exception. The patch below enables the correct Exception message, which should help debug what is wrong in the first place. diff --git a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py index e2f61e4..9163e9b 100644 --- a/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py +++ b/bitbake/lib/toaster/bldcontrol/management/commands/loadconf.py @@ -59,7 +59,7 @@ class Command(BaseCommand): except ValueError: pass if url == None: - raise Exception("Error while looking for remote \"%s\" in \"s\"" % (remote_name, lo.local_path)) + raise Exception("Error while looking for remote \"%s\" in \"%s\"" % (remote_name, out)) return url
Pushed for review on poky-contrib:adamian/20150204-bug-7283
Merged in master.
Verified on master: 33558eacc8a2d3dce3396b9ab2fd0773ac5076bc