summaryrefslogtreecommitdiffstats
path: root/meta/classes/gconf.bbclass
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/classes/gconf.bbclass
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/classes/gconf.bbclass')
-rw-r--r--meta/classes/gconf.bbclass56
1 files changed, 28 insertions, 28 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass
index fb9f701b37..7a3ee3c28c 100644
--- a/meta/classes/gconf.bbclass
+++ b/meta/classes/gconf.bbclass
@@ -39,33 +39,33 @@ done
39} 39}
40 40
41python populate_packages_append () { 41python populate_packages_append () {
42 import re 42 import re
43 packages = d.getVar('PACKAGES', True).split() 43 packages = d.getVar('PACKAGES', True).split()
44 pkgdest = d.getVar('PKGDEST', True) 44 pkgdest = d.getVar('PKGDEST', True)
45 45
46 for pkg in packages: 46 for pkg in packages:
47 schema_dir = '%s/%s/etc/gconf/schemas' % (pkgdest, pkg) 47 schema_dir = '%s/%s/etc/gconf/schemas' % (pkgdest, pkg)
48 schemas = [] 48 schemas = []
49 schema_re = re.compile(".*\.schemas$") 49 schema_re = re.compile(".*\.schemas$")
50 if os.path.exists(schema_dir): 50 if os.path.exists(schema_dir):
51 for f in os.listdir(schema_dir): 51 for f in os.listdir(schema_dir):
52 if schema_re.match(f): 52 if schema_re.match(f):
53 schemas.append(f) 53 schemas.append(f)
54 if schemas != []: 54 if schemas != []:
55 bb.note("adding gconf postinst and prerm scripts to %s" % pkg) 55 bb.note("adding gconf postinst and prerm scripts to %s" % pkg)
56 d.setVar('SCHEMA_FILES', " ".join(schemas)) 56 d.setVar('SCHEMA_FILES', " ".join(schemas))
57 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True) 57 postinst = d.getVar('pkg_postinst_%s' % pkg, True) or d.getVar('pkg_postinst', True)
58 if not postinst: 58 if not postinst:
59 postinst = '#!/bin/sh\n' 59 postinst = '#!/bin/sh\n'
60 postinst += d.getVar('gconf_postinst', True) 60 postinst += d.getVar('gconf_postinst', True)
61 d.setVar('pkg_postinst_%s' % pkg, postinst) 61 d.setVar('pkg_postinst_%s' % pkg, postinst)
62 prerm = d.getVar('pkg_prerm_%s' % pkg, True) or d.getVar('pkg_prerm', True) 62 prerm = d.getVar('pkg_prerm_%s' % pkg, True) or d.getVar('pkg_prerm', True)
63 if not prerm: 63 if not prerm:
64 prerm = '#!/bin/sh\n' 64 prerm = '#!/bin/sh\n'
65 prerm += d.getVar('gconf_prerm', True) 65 prerm += d.getVar('gconf_prerm', True)
66 d.setVar('pkg_prerm_%s' % pkg, prerm) 66 d.setVar('pkg_prerm_%s' % pkg, prerm)
67 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or "" 67 rdepends = d.getVar("RDEPENDS_%s" % pkg, True) or ""
68 rdepends += ' ' + d.getVar('MLPREFIX') + 'gconf' 68 rdepends += ' ' + d.getVar('MLPREFIX') + 'gconf'
69 d.setVar("RDEPENDS_%s" % pkg, rdepends) 69 d.setVar("RDEPENDS_%s" % pkg, rdepends)
70 70
71} 71}