summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/connman/connman.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-11 17:33:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-19 10:24:50 +0100
commitbfd279de3275abbfaf3e630383ec244131e0375f (patch)
tree0d1c90461a890d21444f5d2afb13c52b302427f1 /meta/recipes-connectivity/connman/connman.inc
parent99203edda6f0b09d817454d656c100b7a8806b18 (diff)
downloadpoky-bfd279de3275abbfaf3e630383ec244131e0375f.tar.gz
Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman.inc')
-rw-r--r--meta/recipes-connectivity/connman/connman.inc27
1 files changed, 13 insertions, 14 deletions
diff --git a/meta/recipes-connectivity/connman/connman.inc b/meta/recipes-connectivity/connman/connman.inc
index bb6f5321ed..9966f879a6 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -96,20 +96,19 @@ RDEPENDS_${PN} = "\
96PACKAGES_DYNAMIC = "${PN}-plugin-*" 96PACKAGES_DYNAMIC = "${PN}-plugin-*"
97 97
98python populate_packages_prepend() { 98python populate_packages_prepend() {
99 depmap = dict( pppd="ppp", 99 depmap = dict(pppd="ppp")
100 ) 100 packages = []
101 packages = [] 101 multilib_prefix = (d.getVar("MLPREFIX", True) or "")
102 multilib_prefix = (d.getVar("MLPREFIX", True) or "") 102 hook = lambda file,pkg,b,c,d:packages.append((file,pkg))
103 hook = lambda file,pkg,b,c,d:packages.append((file,pkg)) 103 plugin_dir = d.expand('${libdir}/connman/plugins/')
104 plugin_dir = d.expand('${libdir}/connman/plugins/') 104 plugin_name = d.expand('${PN}-plugin-%s')
105 plugin_name = d.expand('${PN}-plugin-%s') 105 do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook, prepend=True )
106 do_split_packages(d, plugin_dir, '^(.*).so$', plugin_name, '${PN} plugin for %s', extra_depends='', hook=hook, prepend=True ) 106 for (file, package) in packages:
107 for (file, package) in packages: 107 plugintype = package.split( '-' )[-1]
108 plugintype = package.split( '-' )[-1] 108 if plugintype in depmap:
109 if plugintype in depmap: 109 rdepends = map(lambda x: multilib_prefix + x, depmap[plugintype].split())
110 rdepends = map(lambda x: multilib_prefix + x, depmap[plugintype].split()) 110 bb.note( "Adding rdependency on %s to %s" % ( rdepends, package ) )
111 bb.note( "Adding rdependency on %s to %s" % ( rdepends, package ) ) 111 d.setVar("RDEPENDS_%s" % package, " ".join(rdepends))
112 d.setVar("RDEPENDS_%s" % package, " ".join(rdepends))
113} 112}
114 113
115PACKAGES =+ "${PN}-tools ${PN}-tests" 114PACKAGES =+ "${PN}-tools ${PN}-tests"