From a56246f3f69d60541b276ca91e15c3bc24bb79e2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 26 Oct 2012 00:25:01 -0700 Subject: libecj-bootstrap,junit: Tweak to fix rebuild issues When rebuilding in already built tree we have these issues where a file is already deleted first time but rm fails on reexecution. This patch adds checks for such cases so that rebuilds are guarnteed Signed-off-by: Khem Raj --- recipes-core/junit/junit_3.8.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'recipes-core/junit') diff --git a/recipes-core/junit/junit_3.8.2.bb b/recipes-core/junit/junit_3.8.2.bb index 9d56618..ded03f2 100644 --- a/recipes-core/junit/junit_3.8.2.bb +++ b/recipes-core/junit/junit_3.8.2.bb @@ -14,8 +14,9 @@ do_unpackpost() { mkdir -p src # Prevent deletion by do_removebinaries. - mv src.jar src.zip - + if [ -e src.jar ]; then + mv src.jar src.zip + fi unzip src.zip -d src } -- cgit v1.2.3-54-g00ecf