diff options
Diffstat (limited to 'meta/recipes-core/busybox/busybox.inc')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index b2f1960226..1f4a48c8cf 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc | |||
@@ -331,21 +331,21 @@ ALTERNATIVE_LINK_NAME[syslog-conf] = "${sysconfdir}/syslog.conf" | |||
331 | 331 | ||
332 | python () { | 332 | python () { |
333 | if bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | 333 | if bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): |
334 | pn = d.getVar('PN', True) | 334 | pn = d.getVar('PN') |
335 | d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' syslog-init') | 335 | d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' syslog-init') |
336 | d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslog' % (d.getVar('sysconfdir', True))) | 336 | d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-init', '%s/init.d/syslog' % (d.getVar('sysconfdir'))) |
337 | d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-init', '%s/init.d/syslog.%s' % (d.getVar('sysconfdir', True), d.getVar('BPN', True))) | 337 | d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-init', '%s/init.d/syslog.%s' % (d.getVar('sysconfdir'), d.getVar('BPN'))) |
338 | d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' syslog-startup-conf') | 338 | d.appendVar('ALTERNATIVE_%s-syslog' % (pn), ' syslog-startup-conf') |
339 | d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-startup-conf', '%s/syslog-startup.conf' % (d.getVar('sysconfdir', True))) | 339 | d.setVarFlag('ALTERNATIVE_LINK_NAME', 'syslog-startup-conf', '%s/syslog-startup.conf' % (d.getVar('sysconfdir'))) |
340 | d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-startup-conf', '%s/syslog-startup.conf.%s' % (d.getVar('sysconfdir', True), d.getVar('BPN', True))) | 340 | d.setVarFlag('ALTERNATIVE_TARGET', 'syslog-startup-conf', '%s/syslog-startup.conf.%s' % (d.getVar('sysconfdir'), d.getVar('BPN'))) |
341 | } | 341 | } |
342 | 342 | ||
343 | python do_package_prepend () { | 343 | python do_package_prepend () { |
344 | # We need to load the full set of busybox provides from the /etc/busybox.links | 344 | # We need to load the full set of busybox provides from the /etc/busybox.links |
345 | # Use this to see the update-alternatives with the right information | 345 | # Use this to see the update-alternatives with the right information |
346 | 346 | ||
347 | dvar = d.getVar('D', True) | 347 | dvar = d.getVar('D') |
348 | pn = d.getVar('PN', True) | 348 | pn = d.getVar('PN') |
349 | def set_alternative_vars(links, target): | 349 | def set_alternative_vars(links, target): |
350 | links = d.expand(links) | 350 | links = d.expand(links) |
351 | target = d.expand(target) | 351 | target = d.expand(target) |