summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/update-alternatives.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/update-alternatives.bbclass b/meta/classes/update-alternatives.bbclass
index ae58344d3d..7b0518d848 100644
--- a/meta/classes/update-alternatives.bbclass
+++ b/meta/classes/update-alternatives.bbclass
@@ -69,15 +69,16 @@ done
69} 69}
70 70
71update_alternatives_batch_doinstall() { 71update_alternatives_batch_doinstall() {
72if [ "${PN}" = "${BPN}" ] ; then
73 for link in ${ALTERNATIVE_LINKS} 72 for link in ${ALTERNATIVE_LINKS}
74 do 73 do
75 mv ${D}${link} ${D}${link}.${PN} 74 mv ${D}${link} ${D}${link}.${PN}
76 done 75 done
77fi
78} 76}
79 77
80def update_alternatives_after_parse(d): 78def update_alternatives_after_parse(d):
79 if bb.data.inherits_class('native', d) or bb.data.inherits_class('nativesdk', d):
80 return
81
81 if d.getVar('ALTERNATIVE_LINKS') != None: 82 if d.getVar('ALTERNATIVE_LINKS') != None:
82 doinstall = d.getVar('do_install', 0) 83 doinstall = d.getVar('do_install', 0)
83 doinstall += d.getVar('update_alternatives_batch_doinstall', 0) 84 doinstall += d.getVar('update_alternatives_batch_doinstall', 0)