summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox
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/recipes-core/busybox
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/recipes-core/busybox')
-rw-r--r--meta/recipes-core/busybox/busybox.inc26
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 82137a3c0e..f5bf247834 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -218,23 +218,23 @@ ALTERNATIVE_TARGET[syslog-startup-conf] = "${sysconfdir}/syslog-startup.conf.${B
218ALTERNATIVE_TARGET = "/bin/busybox" 218ALTERNATIVE_TARGET = "/bin/busybox"
219 219
220python do_package_prepend () { 220python do_package_prepend () {
221 # We need to load the full set of busybox provides from the /etc/busybox.links 221 # We need to load the full set of busybox provides from the /etc/busybox.links
222 # Use this to see the update-alternatives with the right information 222 # Use this to see the update-alternatives with the right information
223 223
224 dvar = d.getVar('D', True) 224 dvar = d.getVar('D', True)
225 pn = d.getVar('PN', True) 225 pn = d.getVar('PN', True)
226 f = open('%s/etc/busybox.links' % (dvar), 'r') 226 f = open('%s/etc/busybox.links' % (dvar), 'r')
227 227
228 for alt_link_name in f: 228 for alt_link_name in f:
229 alt_link_name = alt_link_name.strip() 229 alt_link_name = alt_link_name.strip()
230 alt_name = os.path.basename(alt_link_name) 230 alt_name = os.path.basename(alt_link_name)
231 231
232 # Match coreutils 232 # Match coreutils
233 if alt_name == '[': 233 if alt_name == '[':
234 alt_name = 'lbracket' 234 alt_name = 'lbracket'
235 235
236 d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name) 236 d.appendVar('ALTERNATIVE_%s' % (pn), ' ' + alt_name)
237 d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name) 237 d.setVarFlag('ALTERNATIVE_LINK_NAME', alt_name, alt_link_name)
238} 238}
239 239
240pkg_postinst_${PN} () { 240pkg_postinst_${PN} () {