summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/svk.py
diff options
context:
space:
mode:
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):