diff options
Diffstat (limited to 'meta/classes/gconf.bbclass')
-rw-r--r-- | meta/classes/gconf.bbclass | 56 |
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 | ||
41 | python populate_packages_append () { | 41 | python 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 | } |