diff options
author | Yu Ke <ke.yu@intel.com> | 2010-12-27 10:07:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 20:21:48 +0000 |
commit | 7420e70f4f03a18f9d5a0d3226918088af1032bd (patch) | |
tree | c24559f7aa3593479523e3adc62e1448fec04cde /bitbake/lib/bb/fetch2 | |
parent | 54e34f6e255d1717beada23638a5783c9dda42ea (diff) | |
download | poky-7420e70f4f03a18f9d5a0d3226918088af1032bd.tar.gz |
bb.fetch2.svn.py: add urldata_init
move the svn specific urldata init from localpath to urldata_init
so that it can be called early
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 3315b159da..c0a7a548cc 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py | |||
@@ -42,7 +42,10 @@ class Svn(Fetch): | |||
42 | """ | 42 | """ |
43 | return ud.type in ['svn'] | 43 | return ud.type in ['svn'] |
44 | 44 | ||
45 | def localpath(self, url, ud, d): | 45 | def urldata_init(self, ud, d): |
46 | """ | ||
47 | init svn specific variable within url data | ||
48 | """ | ||
46 | if not "module" in ud.parm: | 49 | if not "module" in ud.parm: |
47 | raise MissingParameterError("svn method needs a 'module' parameter") | 50 | raise MissingParameterError("svn method needs a 'module' parameter") |
48 | 51 | ||
@@ -53,6 +56,7 @@ class Svn(Fetch): | |||
53 | ud.pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath) | 56 | ud.pkgdir = os.path.join(data.expand('${SVNDIR}', d), ud.host, relpath) |
54 | ud.moddir = os.path.join(ud.pkgdir, ud.module) | 57 | ud.moddir = os.path.join(ud.pkgdir, ud.module) |
55 | 58 | ||
59 | def localpath(self, url, ud, d): | ||
56 | if 'rev' in ud.parm: | 60 | if 'rev' in ud.parm: |
57 | ud.date = "" | 61 | ud.date = "" |
58 | ud.revision = ud.parm['rev'] | 62 | ud.revision = ud.parm['rev'] |