summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/osc.py
diff options
context:
space:
mode:
authorJoshua Lock <joshua.g.lock@intel.com>2016-11-25 15:28:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:09 +0000
commit1fce7ecbbb004a5ad82da3eef79cfd52b276708d (patch)
treedc19c8ecb8e0b04ba5eafd27a7679bb55585a868 /bitbake/lib/bb/fetch2/osc.py
parent1d0c124cdf0282b8d139063409e40982f0ec9888 (diff)
downloadpoky-1fce7ecbbb004a5ad82da3eef79cfd52b276708d.tar.gz
bitbake: bitbake: remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True option from getVar() calls with a regex search and replace. Search made with the following regex: getVar ?\(( ?[^,()]*), True\) (Bitbake rev: 3b45c479de8640f92dd1d9f147b02e1eecfaadc8) Signed-off-by: Joshua Lock <joshua.g.lock@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/osc.py')
-rw-r--r--bitbake/lib/bb/fetch2/osc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py
index 295abf953b..26f88e1f46 100644
--- a/bitbake/lib/bb/fetch2/osc.py
+++ b/bitbake/lib/bb/fetch2/osc.py
@@ -34,7 +34,7 @@ class Osc(FetchMethod):
34 34
35 # Create paths to osc checkouts 35 # Create paths to osc checkouts
36 relpath = self._strip_leading_slashes(ud.path) 36 relpath = self._strip_leading_slashes(ud.path)
37 ud.pkgdir = os.path.join(d.getVar('OSCDIR', True), ud.host) 37 ud.pkgdir = os.path.join(d.getVar('OSCDIR'), ud.host)
38 ud.moddir = os.path.join(ud.pkgdir, relpath, ud.module) 38 ud.moddir = os.path.join(ud.pkgdir, relpath, ud.module)
39 39
40 if 'rev' in ud.parm: 40 if 'rev' in ud.parm:
@@ -84,7 +84,7 @@ class Osc(FetchMethod):
84 84
85 logger.debug(2, "Fetch: checking for module directory '" + ud.moddir + "'") 85 logger.debug(2, "Fetch: checking for module directory '" + ud.moddir + "'")
86 86
87 if os.access(os.path.join(d.getVar('OSCDIR', True), ud.path, ud.module), os.R_OK): 87 if os.access(os.path.join(d.getVar('OSCDIR'), ud.path, ud.module), os.R_OK):
88 oscupdatecmd = self._buildosccommand(ud, d, "update") 88 oscupdatecmd = self._buildosccommand(ud, d, "update")
89 logger.info("Update "+ ud.url) 89 logger.info("Update "+ ud.url)
90 # update sources there 90 # update sources there
@@ -112,7 +112,7 @@ class Osc(FetchMethod):
112 Generate a .oscrc to be used for this run. 112 Generate a .oscrc to be used for this run.
113 """ 113 """
114 114
115 config_path = os.path.join(d.getVar('OSCDIR', True), "oscrc") 115 config_path = os.path.join(d.getVar('OSCDIR'), "oscrc")
116 if (os.path.exists(config_path)): 116 if (os.path.exists(config_path)):
117 os.remove(config_path) 117 os.remove(config_path)
118 118
@@ -121,8 +121,8 @@ class Osc(FetchMethod):
121 f.write("apisrv = %s\n" % ud.host) 121 f.write("apisrv = %s\n" % ud.host)
122 f.write("scheme = http\n") 122 f.write("scheme = http\n")
123 f.write("su-wrapper = su -c\n") 123 f.write("su-wrapper = su -c\n")
124 f.write("build-root = %s\n" % d.getVar('WORKDIR', True)) 124 f.write("build-root = %s\n" % d.getVar('WORKDIR'))
125 f.write("urllist = %s\n" % d.getVar("OSCURLLIST", True)) 125 f.write("urllist = %s\n" % d.getVar("OSCURLLIST"))
126 f.write("extra-pkgs = gzip\n") 126 f.write("extra-pkgs = gzip\n")
127 f.write("\n") 127 f.write("\n")
128 f.write("[%s]\n" % ud.host) 128 f.write("[%s]\n" % ud.host)