aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-01-20 16:19:44 +0000
committerTom Rini <tom_rini@mentor.com>2011-02-09 09:22:42 -0700
commit0978356c5b31861505240fd81e4fa2236682b8eb (patch)
treee4c7929168d4a62f1cd58415fc9101eec9ccbe94 /classes
parent92c386850d735ab032a59df62d5a5f132ac58ffb (diff)
downloadopenembedded-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')
-rw-r--r--classes/gitpkgv.bbclass3
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()