gitpkgv.bbclass: return None if repository does not exist
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 20 Jan 2011 16:19:44 +0000 (16:19 +0000)
committerTom Rini <tom_rini@mentor.com>
Wed, 9 Feb 2011 16:22:42 +0000 (09:22 -0700)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
classes/gitpkgv.bbclass

index 64adcae..d4b8287 100644 (file)
@@ -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()