Skip to contentSkip to conversation

ebtables: Move files only when src != dst.

meta-networking Amarnath Valluri 1 participant 1 message Feb 8, 2017

lore
Share & tools
lore
#0 lore raw

While moving files from ${base_sbindir} to ${sbindir} check if both are same.

---
 meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
meta-networking/recipes-filter/ebtables/ebtables_2.0.10-4.bb +4 -2
index d24b81b..f5e2871 100644
@@ -70,8 +70,10 @@ do_install () {
 
     # The script ebtables-save refernces perl in exec_prefix, so
     # move it to sbindir to avoid QA issue
-    install -d ${D}/${sbindir}
-    mv ${D}/${base_sbindir}/ebtables-save ${D}/${sbindir}
+    if ${base_sbindir} != ${sbindir} ; then
+       install -d ${D}/${sbindir}
+       mv ${D}/${base_sbindir}/ebtables-save ${D}/${sbindir}
+    fi
 
     # Install systemd service files
     install -d ${D}${systemd_unitdir}/system
Signature · 1 line
2.7.4