mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
netcf_git: Check if src != dst while moving files.
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
9f0eebd829
commit
8bc2e7cb78
|
|
@ -47,9 +47,11 @@ do_install_append() {
|
|||
if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
if [ -d "${D}${libdir}/systemd/system" ]; then
|
||||
mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
|
||||
rm -rf ${D}${libdir}/systemd/
|
||||
else
|
||||
if [ "${systemd_unitdir}" != "${libdir}/systemd" ] ; then
|
||||
mv ${D}${libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
|
||||
rm -rf ${D}${libdir}/systemd/
|
||||
fi
|
||||
elif [ "${systemd_unitdir}" != "${nonarch_libdir}/systemd" ] ; then
|
||||
mv ${D}${nonarch_libdir}/systemd/system/* ${D}${systemd_unitdir}/system/
|
||||
rm -rf ${D}${nonarch_libdir}/systemd/
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user