diff options
Diffstat (limited to 'meta/recipes-core/busybox/busybox.inc')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 26 |
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 | |||
218 | ALTERNATIVE_TARGET = "/bin/busybox" | 218 | ALTERNATIVE_TARGET = "/bin/busybox" |
219 | 219 | ||
220 | python do_package_prepend () { | 220 | python 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 | ||
240 | pkg_postinst_${PN} () { | 240 | pkg_postinst_${PN} () { |