Convert tab indentation in python functions into four-space
(From OE-Core rev: 604d46c686d06d62d5a07b9c7f4fa170f99307d8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
99203edda6
commit
bfd279de32
|
@ -61,8 +61,7 @@ def base_dep_prepend(d):
|
|||
# we need that built is the responsibility of the patch function / class, not
|
||||
# the application.
|
||||
if not d.getVar('INHIBIT_DEFAULT_DEPS'):
|
||||
if (d.getVar('HOST_SYS', True) !=
|
||||
d.getVar('BUILD_SYS', True)):
|
||||
if (d.getVar('HOST_SYS', True) != d.getVar('BUILD_SYS', True)):
|
||||
deps += " virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc "
|
||||
return deps
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ def get_imagecmds(d):
|
|||
types.remove("live")
|
||||
|
||||
if d.getVar('IMAGE_LINK_NAME', True):
|
||||
cmds += " rm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*"
|
||||
cmds += "\trm -f ${DEPLOY_DIR_IMAGE}/${IMAGE_LINK_NAME}.*"
|
||||
|
||||
for type in types:
|
||||
ccmd = []
|
||||
|
|
|
@ -6,7 +6,7 @@ SRCTREECOVEREDTASKS += "do_kernel_link_vmlinux do_kernel_configme do_validate_br
|
|||
# returns local (absolute) path names for all valid patches in the
|
||||
# src_uri
|
||||
def find_patches(d):
|
||||
patches=src_patches(d)
|
||||
patches = src_patches(d)
|
||||
patch_list=[]
|
||||
for p in patches:
|
||||
_, _, local, _, _, _ = bb.decodeurl(p)
|
||||
|
|
|
@ -359,7 +359,7 @@ python package_do_split_gconvs () {
|
|||
m.write("all: %s\n\n" % " ".join(commands.keys()))
|
||||
for cmd in commands:
|
||||
m.write(cmd + ":\n")
|
||||
m.write(" " + commands[cmd] + "\n\n")
|
||||
m.write("\t" + commands[cmd] + "\n\n")
|
||||
m.close()
|
||||
d.setVar("B", os.path.dirname(makefile))
|
||||
d.setVar("EXTRA_OEMAKE", "${PARALLEL_MAKE}")
|
||||
|
|
|
@ -300,8 +300,8 @@ python populate_packages_prepend () {
|
|||
# Default to generate shell script.. eventually we may want to change this...
|
||||
alt_target = os.path.relpath(alt_target, os.path.dirname(alt_link))
|
||||
|
||||
alt_setup_links += ' update-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
|
||||
alt_remove_links += ' update-alternatives --remove %s %s\n' % (alt_name, alt_target)
|
||||
alt_setup_links += '\tupdate-alternatives --install %s %s %s %s\n' % (alt_link, alt_name, alt_target, alt_priority)
|
||||
alt_remove_links += '\tupdate-alternatives --remove %s %s\n' % (alt_name, alt_target)
|
||||
|
||||
if alt_setup_links:
|
||||
bb.note('adding update-alternatives calls to postinst/postrm for %s' % pkg)
|
||||
|
|
|
@ -96,8 +96,7 @@ RDEPENDS_${PN} = "\
|
|||
PACKAGES_DYNAMIC = "${PN}-plugin-*"
|
||||
|
||||
python populate_packages_prepend() {
|
||||
depmap = dict( pppd="ppp",
|
||||
)
|
||||
depmap = dict(pppd="ppp")
|
||||
packages = []
|
||||
multilib_prefix = (d.getVar("MLPREFIX", True) or "")
|
||||
hook = lambda file,pkg,b,c,d:packages.append((file,pkg))
|
||||
|
|
|
@ -67,11 +67,11 @@ python populate_packages_prepend() {
|
|||
|
||||
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
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue