Skip to contentSkip to conversation

sstate: add -f to mv when moving sstate files into place

PATCH New Jeff Polk 1 participant 1 message Apr 1, 2013

lore
Share & tools
lore

Jeff Polk

author
#0 lore raw

PATCH 1/1 sstate: add -f to mv when moving sstate files into place

Under some conditions (ACLs enabled, NFS) mv can interactively prompt before overwriting files. Avoid hanging builds in that case by using -f which should be harmless in other cases.

---
 meta/classes/sstate.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/sstate.bbclass +1 -1
index ce9f243..c7d8d68 100644
@@ -547,7 +547,7 @@ sstate_create_package () {
 		tar -cz --file=$TFILE --files-from=/dev/null
 	fi
 	chmod 0664 $TFILE 
-	mv $TFILE ${SSTATE_PKG}
+	mv -f $TFILE ${SSTATE_PKG}
 
 	cd ${WORKDIR}
 	rm -rf ${SSTATE_BUILDDIR}
Signature · 1 line
1.7.9.5