From c50ffbc5d18fb5cfb40fe5b6b8eca9a790c0c4dc0a36891f5902905bb80c9ed6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 19 Sep 2023 13:42:19 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/jython?expand=0&rev=42 --- jython-reproducible-now.patch | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/jython-reproducible-now.patch b/jython-reproducible-now.patch index ee8e2b9..a4722c9 100644 --- a/jython-reproducible-now.patch +++ b/jython-reproducible-now.patch @@ -1,22 +1,3 @@ -diff --git a/src/org/python/core/PySystemState.java b/src/org/python/core/PySystemState.java -index 1fb701d..ee9b38f 100644 ---- a/src/org/python/core/PySystemState.java -+++ b/src/org/python/core/PySystemState.java -@@ -1278,9 +1278,11 @@ public class PySystemState extends PyObject - } - cachedir = new File(props.getProperty(PYTHON_CACHEDIR, CACHEDIR_DEFAULT_NAME)); - if (!cachedir.isAbsolute()) { -- String prefixString = props.getProperty("user.dir", ""); -- cachedir = new File(prefixString, cachedir.getPath()); -- cachedir = cachedir.getAbsoluteFile(); -+ File jythondir = new File(System.getProperty("user.home"), ".jython-cache"); -+ if (!jythondir.isDirectory()) { -+ jythondir.mkdirs(); -+ } -+ cachedir = new File(jythondir, cachedir.getPath()); - } - logger.log(Level.CONFIG, "cache at {0}", cachedir); - } diff --git a/src/org/python/modules/posix/PosixModule.java b/src/org/python/modules/posix/PosixModule.java index e3a8dd9..07d4b43 100644 --- a/src/org/python/modules/posix/PosixModule.java