diff options
| -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'] |
