diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-11 17:33:43 +0000 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-19 10:17:30 +0100 | 
| commit | 604d46c686d06d62d5a07b9c7f4fa170f99307d8 (patch) | |
| tree | 67cdf024737b2248d5ea5d01ca001249f06a8792 /meta/classes/update-rc.d.bbclass | |
| parent | 28715eff6dff3415b1d7b0be8cbb465c417e307f (diff) | |
| download | openembedded-core-604d46c686d06d62d5a07b9c7f4fa170f99307d8.tar.gz openembedded-core-604d46c686d06d62d5a07b9c7f4fa170f99307d8.tar.bz2 openembedded-core-604d46c686d06d62d5a07b9c7f4fa170f99307d8.zip | |
Convert tab indentation in python functions into four-space
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/update-rc.d.bbclass')
| -rw-r--r-- | meta/classes/update-rc.d.bbclass | 68 | 
1 files changed, 34 insertions, 34 deletions
| diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass index bddead4a25..eef2e8caa0 100644 --- a/meta/classes/update-rc.d.bbclass +++ b/meta/classes/update-rc.d.bbclass @@ -44,42 +44,42 @@ python __anonymous() {  }  python populate_packages_prepend () { -	def update_rcd_package(pkg): -		bb.debug(1, 'adding update-rc.d calls to postinst/postrm for %s' % pkg) -		localdata = bb.data.createCopy(d) -		overrides = localdata.getVar("OVERRIDES", True) -		localdata.setVar("OVERRIDES", "%s:%s" % (pkg, overrides)) -		bb.data.update_data(localdata) +    def update_rcd_package(pkg): +        bb.debug(1, 'adding update-rc.d calls to postinst/postrm for %s' % pkg) +        localdata = bb.data.createCopy(d) +        overrides = localdata.getVar("OVERRIDES", True) +        localdata.setVar("OVERRIDES", "%s:%s" % (pkg, overrides)) +        bb.data.update_data(localdata) -		""" -		update_rc.d postinst is appended here because pkg_postinst may require to -		execute on the target. Not doing so may cause update_rc.d postinst invoked -		twice to cause unwanted warnings. -		"""  -		postinst = localdata.getVar('pkg_postinst', True) -		if not postinst: -			postinst = '#!/bin/sh\n' -		postinst += localdata.getVar('updatercd_postinst', True) -		d.setVar('pkg_postinst_%s' % pkg, postinst) +        """ +        update_rc.d postinst is appended here because pkg_postinst may require to +        execute on the target. Not doing so may cause update_rc.d postinst invoked +        twice to cause unwanted warnings. +        """  +        postinst = localdata.getVar('pkg_postinst', True) +        if not postinst: +            postinst = '#!/bin/sh\n' +        postinst += localdata.getVar('updatercd_postinst', True) +        d.setVar('pkg_postinst_%s' % pkg, postinst) -		prerm = localdata.getVar('pkg_prerm', True) -		if not prerm: -			prerm = '#!/bin/sh\n' -		prerm += localdata.getVar('updatercd_prerm', True) -		d.setVar('pkg_prerm_%s' % pkg, prerm) +        prerm = localdata.getVar('pkg_prerm', True) +        if not prerm: +            prerm = '#!/bin/sh\n' +        prerm += localdata.getVar('updatercd_prerm', True) +        d.setVar('pkg_prerm_%s' % pkg, prerm) -	        postrm = localdata.getVar('pkg_postrm', True) -	        if not postrm: -	                postrm = '#!/bin/sh\n' -                postrm += localdata.getVar('updatercd_postrm', True) -		d.setVar('pkg_postrm_%s' % pkg, postrm) +        postrm = localdata.getVar('pkg_postrm', True) +        if not postrm: +                postrm = '#!/bin/sh\n' +        postrm += localdata.getVar('updatercd_postrm', True) +        d.setVar('pkg_postrm_%s' % pkg, postrm) -	pkgs = d.getVar('INITSCRIPT_PACKAGES', True) -	if pkgs == None: -		pkgs = d.getVar('UPDATERCPN', True) -		packages = (d.getVar('PACKAGES', True) or "").split() -		if not pkgs in packages and packages != []: -			pkgs = packages[0] -	for pkg in pkgs.split(): -		update_rcd_package(pkg) +    pkgs = d.getVar('INITSCRIPT_PACKAGES', True) +    if pkgs == None: +        pkgs = d.getVar('UPDATERCPN', True) +        packages = (d.getVar('PACKAGES', True) or "").split() +        if not pkgs in packages and packages != []: +            pkgs = packages[0] +    for pkg in pkgs.split(): +        update_rcd_package(pkg)  } | 
