diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/cvs.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/cvs.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/bitbake/lib/bb/fetch/cvs.py b/bitbake/lib/bb/fetch/cvs.py index 42d71ba9fe..bd919e234e 100644 --- a/bitbake/lib/bb/fetch/cvs.py +++ b/bitbake/lib/bb/fetch/cvs.py | |||
| @@ -47,9 +47,7 @@ class Cvs(Fetch): | |||
| 47 | raise MissingParameterError("cvs method needs a 'module' parameter") | 47 | raise MissingParameterError("cvs method needs a 'module' parameter") |
| 48 | ud.module = ud.parm["module"] | 48 | ud.module = ud.parm["module"] |
| 49 | 49 | ||
| 50 | ud.tag = "" | 50 | ud.tag = ud.parm.get('tag', "") |
| 51 | if 'tag' in ud.parm: | ||
| 52 | ud.tag = ud.parm['tag'] | ||
| 53 | 51 | ||
| 54 | # Override the default date in certain cases | 52 | # Override the default date in certain cases |
| 55 | if 'date' in ud.parm: | 53 | if 'date' in ud.parm: |
| @@ -76,17 +74,9 @@ class Cvs(Fetch): | |||
| 76 | 74 | ||
| 77 | def go(self, loc, ud, d): | 75 | def go(self, loc, ud, d): |
| 78 | 76 | ||
| 79 | method = "pserver" | 77 | method = ud.parm.get('method', 'pserver') |
| 80 | if "method" in ud.parm: | 78 | localdir = ud.parm.get('localdir', ud.module) |
| 81 | method = ud.parm["method"] | 79 | cvs_port = ud.parm.get('port', '') |
| 82 | |||
| 83 | localdir = ud.module | ||
| 84 | if "localdir" in ud.parm: | ||
| 85 | localdir = ud.parm["localdir"] | ||
| 86 | |||
| 87 | cvs_port = "" | ||
| 88 | if "port" in ud.parm: | ||
| 89 | cvs_port = ud.parm["port"] | ||
| 90 | 80 | ||
| 91 | cvs_rsh = None | 81 | cvs_rsh = None |
| 92 | if method == "ext": | 82 | if method == "ext": |
