desktop/frostwire/java-version-detection.patch

11 lines
462 B
Diff
Raw Normal View History

2014-04-02 07:12:25 +08:00
--- 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/"`