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

login
register
mail settings
Submitter Jeff Polk
Date April 1, 2013, 3:52 p.m.
Message ID <1364831524-28363-1-git-send-email-jeff.polk@windriver.com>
Download mbox | patch
Permalink /patch/47219/
State Accepted
Commit b50626c6f03d40055521e32f8e0b6968961cdc8e
Headers show

Comments

Jeff Polk - April 1, 2013, 3:52 p.m.
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.

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
---
 meta/classes/sstate.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index ce9f243..c7d8d68 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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}