]> code.ossystems Code Review - openembedded-core.git/commit
metadata.py: return info after fallback methods
authorChen Qi <Qi.Chen@windriver.com>
Thu, 7 Mar 2019 08:41:33 +0000 (16:41 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Mar 2019 12:59:22 +0000 (12:59 +0000)
commitcd8aedc408afa4f8589f79e4d85befc7cac76ac6
treeec963ec4c311ef2131bd2ad8b94d075b53024743
parent124c6bf5a0a5cc20d2ebbf04dc7b577cb4f5153a
metadata.py: return info after fallback methods

If python3 git module is not installed, we fall back to some git
command to get info. A previous commit (b8d22ed6) accidently deleted
the return statement, causing errors like below.

  Exception: UnboundLocalError: local variable 'InvalidGitRepositoryError' referenced before assignment

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/metadata.py