summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-11 18:15:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-13 20:09:53 +0100
commit36462d5927107b3e33976689f1969e045c396481 (patch)
tree0adc17c43420faea902de72ea3bbce57dc0bb97a /bitbake/lib/bb/fetch2/git.py
parent279d0afd6ea0f2166c8b583d4ab5bd8aff7d9bf8 (diff)
downloadpoky-36462d5927107b3e33976689f1969e045c396481.tar.gz
bitbake/fetch2/git: Set a default for the GITDIR variable
(Bitbake rev: 1a0cdc65812f1f12bf4bbea6540a3aaf0f81b4f7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 5efdfa9ca6..962cc0a484 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -136,8 +136,9 @@ class Git(FetchMethod):
136 for name in ud.names: 136 for name in ud.names:
137 gitsrcname = gitsrcname + '_' + ud.revisions[name] 137 gitsrcname = gitsrcname + '_' + ud.revisions[name]
138 ud.mirrortarball = 'git2_%s.tar.gz' % (gitsrcname) 138 ud.mirrortarball = 'git2_%s.tar.gz' % (gitsrcname)
139 ud.fullmirror = os.path.join(data.getVar("DL_DIR", d, True), ud.mirrortarball) 139 ud.fullmirror = os.path.join(d.getVar("DL_DIR", True), ud.mirrortarball)
140 ud.clonedir = os.path.join(data.expand('${GITDIR}', d), gitsrcname) 140 gitdir = d.getVar("GITDIR", True) or (d.getVar("DL_DIR", True) + "/git2/")
141 ud.clonedir = os.path.join(gitdir, gitsrcname)
141 142
142 ud.localfile = ud.clonedir 143 ud.localfile = ud.clonedir
143 144