From 604d46c686d06d62d5a07b9c7f4fa170f99307d8 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 11 Jul 2012 17:33:43 +0000 Subject: Convert tab indentation in python functions into four-space Signed-off-by: Richard Purdie --- .../recipes-core/base-passwd/base-passwd_3.5.24.bb | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'meta/recipes-core/base-passwd') diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.24.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.24.bb index 6eeee5cd5b..0d6f580f51 100644 --- a/meta/recipes-core/base-passwd/base-passwd_3.5.24.bb +++ b/meta/recipes-core/base-passwd/base-passwd_3.5.24.bb @@ -52,30 +52,30 @@ base_passwd_sstate_postinst() { } python populate_packages_prepend() { - # Add in the preinst function for ${PN} - # We have to do this here as prior to this, passwd/group.master - # would be unavailable. We need to create these files at preinst - # time before the files from the package may be available, hence - # storing the data from the files in the preinst directly. + # Add in the preinst function for ${PN} + # We have to do this here as prior to this, passwd/group.master + # would be unavailable. We need to create these files at preinst + # time before the files from the package may be available, hence + # storing the data from the files in the preinst directly. - f = open(d.expand("${STAGING_DATADIR}/base-passwd/passwd.master"), 'r') - passwd = "".join(f.readlines()) - f.close() - f = open(d.expand("${STAGING_DATADIR}/base-passwd/group.master"), 'r') - group = "".join(f.readlines()) - f.close() + f = open(d.expand("${STAGING_DATADIR}/base-passwd/passwd.master"), 'r') + passwd = "".join(f.readlines()) + f.close() + f = open(d.expand("${STAGING_DATADIR}/base-passwd/group.master"), 'r') + group = "".join(f.readlines()) + f.close() - preinst = """#!/bin/sh + preinst = """#!/bin/sh if [ ! -e $D${sysconfdir}/passwd ]; then - cat << EOF > $D${sysconfdir}/passwd +\tcat << EOF > $D${sysconfdir}/passwd """ + passwd + """EOF fi if [ ! -e $D${sysconfdir}/group ]; then - cat << EOF > $D${sysconfdir}/group +\tcat << EOF > $D${sysconfdir}/group """ + group + """EOF fi """ - d.setVar('pkg_preinst_${PN}', preinst) + d.setVar('pkg_preinst_${PN}', preinst) } addtask do_package after do_populate_sysroot -- cgit 1.2.3-korg