summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/svk.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/svk.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/svk.py')
-rw-r--r--bitbake/lib/bb/fetch2/svk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/svk.py b/bitbake/lib/bb/fetch2/svk.py
index 3bb4c38c77..ef1cf4deb1 100644
--- a/bitbake/lib/bb/fetch2/svk.py
+++ b/bitbake/lib/bb/fetch2/svk.py
@@ -42,7 +42,8 @@ class Svk(Fetch):
42 """ 42 """
43 return ud.type in ['svk'] 43 return ud.type in ['svk']
44 44
45 def localpath(self, url, ud, d): 45 def urldata_init(self, ud, d):
46
46 if not "module" in ud.parm: 47 if not "module" in ud.parm:
47 raise MissingParameterError("svk method needs a 'module' parameter") 48 raise MissingParameterError("svk method needs a 'module' parameter")
48 else: 49 else:
@@ -52,6 +53,7 @@ class Svk(Fetch):
52 53
53 ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d) 54 ud.localfile = data.expand('%s_%s_%s_%s_%s.tar.gz' % (ud.module.replace('/', '.'), ud.host, ud.path.replace('/', '.'), ud.revision, ud.date), d)
54 55
56 def localpath(self, url, ud, d):
55 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile) 57 return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
56 58
57 def forcefetch(self, url, ud, d): 59 def forcefetch(self, url, ud, d):