which: use BPN for alternatives

(From OE-Core rev: 3ddf0dbfe5b0dae2baa2719aa96f0bdea1fe7b80)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle 2012-05-22 12:37:16 -05:00 committed by Richard Purdie
parent e4449c91fb
commit 4966bc5809
2 changed files with 4 additions and 4 deletions

View File

@ -27,10 +27,10 @@ do_configure_prepend() {
sed -i "s#${OLD}#${NEW}#g" `grep -rl ${OLD} ${S}`
}
do_install_append() {
mv ${D}/${bindir}/which ${D}/${bindir}/which.${PN}
mv ${D}/${bindir}/which ${D}/${bindir}/which.${BPN}
}
ALTERNATIVE_NAME = "which"
ALTERNATIVE_PATH = "which.${PN}"
ALTERNATIVE_PATH = "which.${BPN}"
ALTERNATIVE_PRIORITY = "100"

View File

@ -24,9 +24,9 @@ do_configure_prepend() {
do_install() {
autotools_do_install
mv ${D}${bindir}/which ${D}${bindir}/which.${PN}
mv ${D}${bindir}/which ${D}${bindir}/which.${BPN}
}
ALTERNATIVE_NAME = "which"
ALTERNATIVE_PATH = "which.${PN}"
ALTERNATIVE_PATH = "which.${BPN}"
ALTERNATIVE_PRIORITY = "100"