diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/update-alternatives.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass index b702e77ee5..8c2b66e7f1 100644 --- a/meta/classes/update-alternatives.bbclass +++ b/meta/classes/update-alternatives.bbclass | |||
@@ -284,8 +284,11 @@ python populate_packages_updatealternatives () { | |||
284 | 284 | ||
285 | bb.note('adding update-alternatives calls to postinst/prerm for %s' % pkg) | 285 | bb.note('adding update-alternatives calls to postinst/prerm for %s' % pkg) |
286 | bb.note('%s' % alt_setup_links) | 286 | bb.note('%s' % alt_setup_links) |
287 | postinst = d.getVar('pkg_postinst_%s' % pkg) or '#!/bin/sh\n' | 287 | postinst = d.getVar('pkg_postinst_%s' % pkg) |
288 | postinst += alt_setup_links | 288 | if postinst: |
289 | postinst = alt_setup_links + postinst | ||
290 | else: | ||
291 | postinst = '#!/bin/sh\n' + alt_setup_links | ||
289 | d.setVar('pkg_postinst_%s' % pkg, postinst) | 292 | d.setVar('pkg_postinst_%s' % pkg, postinst) |
290 | 293 | ||
291 | bb.note('%s' % alt_remove_links) | 294 | bb.note('%s' % alt_remove_links) |