diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-01-20 16:19:44 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-09 09:22:42 -0700 |
commit | 0978356c5b31861505240fd81e4fa2236682b8eb (patch) | |
tree | e4c7929168d4a62f1cd58415fc9101eec9ccbe94 /classes/gitpkgv.bbclass | |
parent | 92c386850d735ab032a59df62d5a5f132ac58ffb (diff) | |
download | openembedded-0978356c5b31861505240fd81e4fa2236682b8eb.tar.gz |
gitpkgv.bbclass: return None if repository does not exist
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes/gitpkgv.bbclass')
-rw-r--r-- | classes/gitpkgv.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/gitpkgv.bbclass b/classes/gitpkgv.bbclass index 64adcae9ad..d4b8287d3e 100644 --- a/classes/gitpkgv.bbclass +++ b/classes/gitpkgv.bbclass @@ -59,6 +59,9 @@ def get_git_pkgv(d, use_tags): gitsrcname = '%s%s' % (host, path.replace('/', '.')) repodir = os.path.join(bb.data.expand('${GITDIR}', d), gitsrcname) + if not os.path.exists(repodir): + return None + rev = bb.fetch.get_srcrev(d).split('+')[1] cwd = os.getcwd() |