summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/cvs.py
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-11-17 15:40:51 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:41 +0000
commit4df0d6adcaae5382009c356d750e7909a44284f6 (patch)
treed3b8b48e0ded47a63c4ea65b56add754cc750126 /bitbake/lib/bb/fetch/cvs.py
parentb7d667f25283cddf8ff4fc9e35425a884a9f527e (diff)
downloadpoky-4df0d6adcaae5382009c356d750e7909a44284f6.tar.gz
fetch: be more pythonic
no functional changes (Bitbake rev: e88834fb7c6821cc29c12d296f2edd51f6eb3746) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch/cvs.py')
-rw-r--r--bitbake/lib/bb/fetch/cvs.py18
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":