[Reproducible-commits] [javatools] 09/12: Silence error warning when using gij check

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Jan 8 11:02:25 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository javatools.

commit d294222aaa8e8487d804fe5ca1bc05d3ecbe0c73
Author: Markus Koschany <apo at gambaru.de>
Date:   Tue Dec 9 17:03:19 2014 +0100

    Silence error warning when using gij check
---
 jarwrapper | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jarwrapper b/jarwrapper
index 7a5a89e..79ed9db 100755
--- a/jarwrapper
+++ b/jarwrapper
@@ -38,7 +38,7 @@ MULTIARCH_LIBRARY_PATH_32BIT="/usr/lib/jni:/usr/lib/arm-linux-gnueabi/jni:/usr/l
 MULTIARCH_LIBRARY_PATH_64BIT="/usr/lib/jni:/usr/lib/alpha-linux-gnu/jni:/usr/lib/x86_64-linux-gnu/jni:/usr/lib/aarch64-linux-gnu/jni:/usr/lib/x86_64-kfreebsd-gnu/jni:/usr/lib/powerpc64-linux-gnu/jni:/usr/lib/powerpc64le-linux-gnu/jni:/usr/lib/s390x-linux-gnu/jni:/usr/lib/sparc64-linux-gnu/jni"
 
 if which "$JAVA" >/dev/null 2>&1; then
-    if java --version | grep "GNU libgcj" > /dev/null; then
+    if java --version 2>&1 | grep "GNU libgcj" > /dev/null; then
         # Let GNU gij handle the library path by itself
         export LD_LIBRARY_PATH=/usr/lib/jni
         exec $JAVA $JAVAOPTS -jar "$JAR" "$@"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/javatools.git



More information about the Reproducible-commits mailing list