Patchwork [meta-java/openjdk-7.0,2/7] xalan-j: remove the directory before copy stuff to it

login
register
mail settings
Submitter Khem Raj
Date Aug. 21, 2012, 4:03 a.m.
Message ID <1345521816-2364-2-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/35029/
State Accepted, archived
Headers show

Comments

Khem Raj - Aug. 21, 2012, 4:03 a.m.
From: Henning Heinold <heinold@inf.fu-berlin.de>

* when the build process got interrtupted it might
  happen something is already in build-serializer/
  so remove it before creating it again
---
 recipes-core/xalan-j/xalan-j_2.7.1.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/recipes-core/xalan-j/xalan-j_2.7.1.bb b/recipes-core/xalan-j/xalan-j_2.7.1.bb
index 4b0911d..85fc0b5 100644
--- a/recipes-core/xalan-j/xalan-j_2.7.1.bb
+++ b/recipes-core/xalan-j/xalan-j_2.7.1.bb
@@ -12,7 +12,6 @@  DEPENDS_virtclass-native = " \
 	xerces-j-native regexp-native jlex-native cup-native jaxp1.3-native bcel-native \
 	"
 
-
 SRC_URI = "\
 	http://archive.apache.org/dist/xml/${BPN}/${BPN}_2_7_1-src.tar.gz;name=archive \
 	http://archive.apache.org/dist/jakarta/bsf/source/bsf-src-2.4.0.tar.gz;name=bsf \
@@ -39,6 +38,7 @@  do_compile() {
   # Remove BSF classes
   rm -rf build-xalan/org/apache/bsf
 
+  rm -rf build-serializer/
   mkdir -p build-serializer/org/apache/xml
   mv build/org/apache/xml/serializer build-serializer/org/apache/xml