]> code.ossystems Code Review - openembedded-core.git/commit
oe-selftest: import git module only when needed
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 19 Dec 2016 13:51:43 +0000 (15:51 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Dec 2016 15:04:12 +0000 (15:04 +0000)
commit66be32c1a075201d6ee0e9b9e10b84e6a2ace745
tree6852016a86790ccc8ce00806b899dc79c65f17c0
parent833f43f71b9a1665c26b6e1874546cb7d37ffd47
oe-selftest: import git module only when needed

git module is not included into standard Python
library and therefore causes import errors on the systems
where PythonGit is not installed.

As git module only used in the code implementing --repository
functionality it's better to import git only in the scope
that requires it.

[YOCTO #10821]

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/metadata.py
scripts/oe-selftest