aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@buglabs.net>2009-11-05 04:41:16 +0000
committerMarcin Juszkiewicz <marcin@buglabs.net>2009-12-02 16:38:42 +0100
commit003c25c63be3c2d85710806aaee392e4e0df6432 (patch)
tree81b799eb3f20994fcad0f1cc0de5a55547a7b488
parentb14468b964257dd02c95cfdc330fe5336a72c4d0 (diff)
downloadopenembedded-003c25c63be3c2d85710806aaee392e4e0df6432.tar.gz
java.bbclass: fixed oe_jarinstall for broken symlinks
Code checked for existance of JAR file and if it was present then it had to be removed before symlinking to it. But it was not working sometimes so we forced symlinking. Proper fix is to check "does file exists or is a symlink" which we do now. Signed-off-by: Marcin Juszkiewicz <marcin@buglabs.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Koen Kooi <koen@openembedded.org>
-rw-r--r--classes/java.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/java.bbclass b/classes/java.bbclass
index 38256d7798..b68035c13e 100644
--- a/classes/java.bbclass
+++ b/classes/java.bbclass
@@ -68,7 +68,7 @@ oe_jarinstall() {
# Creates symlinks out of the remaining arguments.
while [ "$#" -gt 0 ]; do
- if [ -e $dir/$1 ]; then
+ if [ -e $dir/$1 -o -h $dir/$1 ]; then
oewarn "file was in the way. removing:" $dir/$1
rm $dir/$1
fi