sstate: add -f to mv when moving sstate files into place
authorJeff Polk <jeff.polk@windriver.com>
Mon, 1 Apr 2013 15:52:04 +0000 (09:52 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 2 Apr 2013 17:08:23 +0000 (18:08 +0100)
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.

(From OE-Core rev: b1a085db9d8ad2a3117af6f50e510bc9c2f9407b)

Signed-off-by: Jeff Polk <jeff.polk@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/sstate.bbclass

index ce9f243..c7d8d68 100644 (file)
@@ -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}