5391bc49d5
- Update to 2.3.7: [bsc#1186065] * See full changelog in the NEWS file. * Add jython-fix-tty-detection.patch * Rebase patches: - jython-dont-validate-pom.patch - jython-build.patch - jython-cachedir.patch * Remove patches fixed upstream: - jython-makeCompiledFilename.patch - jython-module.patch - jython-nofullbuildpath.patch - jython-cacheperms.patch - jython-compareto.patch - jython-sourcetarget.patch - jython-cached-classes.patch OBS-URL: https://build.opensuse.org/request/show/1095802 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jython?expand=0&rev=38
15 lines
494 B
Diff
15 lines
494 B
Diff
--- jython-2.7.3/src/shell/jython.orig 2017-08-11 16:24:32.831309328 +0100
|
|
+++ jython-2.7.3/src/shell/jython 2017-08-11 16:23:55.346726416 +0100
|
|
@@ -242,6 +242,11 @@
|
|
fi
|
|
fi
|
|
|
|
+# Detect absence of tty
|
|
+if ! tty -s; then
|
|
+ JAVA_OPTS="$JAVA_OPTS -Dpython.launcher.tty=false"
|
|
+fi
|
|
+
|
|
if [ -n "$profile_requested" -o -z "$boot_requested" ] ; then
|
|
[ -n "$profile_requested" ] && echo "Running with instrumented profiler"
|
|
java_args=("${java_args[@]}" -classpath "$CP$CP_DELIMITER$CLASSPATH")
|