diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/update-alternatives.bbclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass index f1250f877b..f3c014a5fc 100644 --- a/meta/classes/update-alternatives.bbclass +++ b/meta/classes/update-alternatives.bbclass | |||
| @@ -131,14 +131,13 @@ def gen_updatealternativesvars(d): | |||
| 131 | populate_packages[vardeps] += "${UPDALTVARS} ${@gen_updatealternativesvars(d)}" | 131 | populate_packages[vardeps] += "${UPDALTVARS} ${@gen_updatealternativesvars(d)}" |
| 132 | 132 | ||
| 133 | # We need to do the rename after the image creation step, but before | 133 | # We need to do the rename after the image creation step, but before |
| 134 | # the split and strip steps.. packagecopy seems to be the earliest reasonable | 134 | # the split and strip steps.. PACKAGE_PREPROCESS_FUNCS is the right |
| 135 | # place. | 135 | # place for that. |
| 136 | python perform_packagecopy_append () { | 136 | PACKAGE_PREPROCESS_FUNCS += "apply_update_alternative_renames" |
| 137 | if update_alternatives_enabled(d): | 137 | python apply_update_alternative_renames () { |
| 138 | apply_update_alternative_renames(d) | 138 | if not update_alternatives_enabled(d): |
| 139 | } | 139 | return |
| 140 | 140 | ||
| 141 | def apply_update_alternative_renames(d): | ||
| 142 | # Check for deprecated usage... | 141 | # Check for deprecated usage... |
| 143 | pn = d.getVar('BPN') | 142 | pn = d.getVar('BPN') |
| 144 | if d.getVar('ALTERNATIVE_LINKS') != None: | 143 | if d.getVar('ALTERNATIVE_LINKS') != None: |
| @@ -204,6 +203,7 @@ def apply_update_alternative_renames(d): | |||
| 204 | os.unlink(src) | 203 | os.unlink(src) |
| 205 | else: | 204 | else: |
| 206 | bb.warn('%s: Unable to resolve dangling symlink: %s' % (pn, alt_target)) | 205 | bb.warn('%s: Unable to resolve dangling symlink: %s' % (pn, alt_target)) |
| 206 | } | ||
| 207 | 207 | ||
| 208 | PACKAGESPLITFUNCS_prepend = "populate_packages_updatealternatives " | 208 | PACKAGESPLITFUNCS_prepend = "populate_packages_updatealternatives " |
| 209 | 209 | ||
