desktop/frostwire/java-version-detection.patch
2014-04-01 23:12:25 +00:00

11 lines
462 B
Diff

--- frostwire.orig 2011-03-24 02:41:09.000000000 +0200
+++ frostwire 2011-03-24 02:41:26.000000000 +0200
@@ -73,7 +73,7 @@ check_version()
return 1
fi
- JAVA_HEADER=`${JAVA_PROGRAM_DIR}java -version 2>&1 | head -n 1`
+ JAVA_HEADER=`${JAVA_PROGRAM_DIR}java -version 2>&1 | grep version`
JAVA_IMPL=`echo ${JAVA_HEADER} | cut -f1 -d' '`
if [ "$JAVA_IMPL" = "java" ] ; then
VERSION=`echo ${JAVA_HEADER} | sed "s/java version \"\(.*\)\"/\1/"`