mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Initial import (#877651).
This commit is contained in:
parent
257b1142ac
commit
86f823b2b0
41 changed files with 13000 additions and 0 deletions
20
sagemath-readonly.patch
Normal file
20
sagemath-readonly.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
diff -up sage-5.8/spkg/build/sage-5.8/sage/all.py.orig sage-5.8/spkg/build/sage-5.8/sage/all.py
|
||||
--- sage-5.8/spkg/build/sage-5.8/sage/all.py.orig 2013-02-22 17:28:29.394862830 -0300
|
||||
+++ sage-5.8/spkg/build/sage-5.8/sage/all.py 2013-02-22 17:28:54.808863803 -0300
|
||||
@@ -288,13 +288,13 @@ def _write_started_file():
|
||||
|
||||
Check that the file exists when Sage is running::
|
||||
|
||||
- sage: started_file = os.path.join(SAGE_LOCAL, 'etc', 'sage-started.txt')
|
||||
+ sage: started_file = os.path.join(DOT_SAGE, 'sage-started.txt')
|
||||
sage: os.path.isfile(started_file)
|
||||
True
|
||||
"""
|
||||
- from sage.misc.all import SAGE_LOCAL
|
||||
+ from sage.misc.all import DOT_SAGE
|
||||
|
||||
- started_file = os.path.join(SAGE_LOCAL, 'etc', 'sage-started.txt')
|
||||
+ started_file = os.path.join(DOT_SAGE, 'sage-started.txt')
|
||||
# Do nothing if the file already exists
|
||||
if os.path.isfile(started_file):
|
||||
return
|
Loading…
Add table
Add a link
Reference in a new issue