boinc-client: Do not overwrite same file when using usrmerge

in case usrmerge is enabled, unit file is already in expected location

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit b8e97f5b2a)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Khem Raj
2022-04-23 08:06:04 -07:00
committed by Armin Kuster
parent 00b970a87a
commit 0105be9ed2
@@ -76,7 +76,8 @@ do_compile:prepend () {
}
do_install:append() {
if [ -e ${D}${nonarch_libdir}/systemd/system/boinc-client.service ]; then
if ! ${@bb.utils.contains('DISTRO_FEATURES','usrmerge','true','false',d)} -a \
-e ${D}${nonarch_libdir}/systemd/system/boinc-client.service; then
install -d ${D}${systemd_system_unitdir}
mv \
${D}${nonarch_libdir}/systemd/system/boinc-client.service \