summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-20 16:52:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 12:15:30 +0100
commit48619958d53cbec888a0a6806c5e494291e9e227 (patch)
tree0618ff69a32566be156b0f7e5d7a06cce350e033 /meta/classes/base.bbclass
parent7c40daab587306da25c8d8f566392ee1f57bbef4 (diff)
downloadpoky-48619958d53cbec888a0a6806c5e494291e9e227.tar.gz
meta/classes: Various python whitespace fixes
It was pointed out we have a number of weird indentations in the python functions. This patch cleans up 3, 7 and other weird indentations for the core bbclass files. It also fixes some wierd (odd) shell function indentation which my searches picked up. (From OE-Core rev: 8385d6d74624000d68814f4e3266d47bc8885942) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 1a094ad384..59febd1022 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -205,8 +205,8 @@ def preferred_ml_updates(d):
205 continue 205 continue
206 virt = "" 206 virt = ""
207 if pkg.startswith("virtual/"): 207 if pkg.startswith("virtual/"):
208 pkg = pkg.replace("virtual/", "") 208 pkg = pkg.replace("virtual/", "")
209 virt = "virtual/" 209 virt = "virtual/"
210 for p in prefixes: 210 for p in prefixes:
211 newname = "PREFERRED_PROVIDER_" + virt + p + "-" + pkg 211 newname = "PREFERRED_PROVIDER_" + virt + p + "-" + pkg
212 if pkg != "kernel": 212 if pkg != "kernel":
@@ -353,13 +353,13 @@ python () {
353 appends = bb.utils.explode_deps(d.expand(" ".join(appends))) 353 appends = bb.utils.explode_deps(d.expand(" ".join(appends)))
354 newappends = [] 354 newappends = []
355 for a in appends: 355 for a in appends:
356 if a.endswith("-native") or a.endswith("-cross"): 356 if a.endswith("-native") or a.endswith("-cross"):
357 newappends.append(a) 357 newappends.append(a)
358 elif a.startswith("virtual/"): 358 elif a.startswith("virtual/"):
359 subs = a.split("/", 1)[1] 359 subs = a.split("/", 1)[1]
360 newappends.append("virtual/" + prefix + subs + extension) 360 newappends.append("virtual/" + prefix + subs + extension)
361 else: 361 else:
362 newappends.append(prefix + a + extension) 362 newappends.append(prefix + a + extension)
363 return newappends 363 return newappends
364 364
365 def appendVar(varname, appends): 365 def appendVar(varname, appends):