summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-03 21:17:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-07 09:06:35 +0000
commit972eb5fababb33b5537fcfbbaf8e33ea820f0fee (patch)
tree2bd453bc66853c72cb284067d6679d6f498cd77b /bitbake/lib/bb/fetch2/git.py
parent0e5404cedadaea6738ef6468d7eb8a24d23d9bab (diff)
downloadpoky-972eb5fababb33b5537fcfbbaf8e33ea820f0fee.tar.gz
bitbake/fetch2: Move ud.localfile setup into urldata_init
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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index a4a1278b68..f38058bbcc 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -71,13 +71,13 @@ class Git(Fetch):
71 71
72 ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git" 72 ud.basecmd = data.getVar("FETCHCMD_git", d, True) or "git"
73 73
74 def localpath(self, url, ud, d):
75 for name in ud.names: 74 for name in ud.names:
76 if not ud.revisions[name] or ud.revisions[name] == "master": 75 if not ud.revisions[name] or ud.revisions[name] == "master":
77 ud.revisions[name] = self.latest_revision(url, ud, d, name) 76 ud.revisions[name] = self.latest_revision(url, ud, d, name)
78 77
79 ud.localfile = ud.mirrortarball 78 ud.localfile = ud.mirrortarball
80 79
80 def localpath(self, url, ud, d):
81 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) 81 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
82 82
83 def forcefetch(self, url, ud, d): 83 def forcefetch(self, url, ud, d):