[arch-commits] Commit in sage-mathematics/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Mar 11 19:47:57 UTC 2015


    Date: Wednesday, March 11, 2015 @ 20:47:56
  Author: arojas
Revision: 129082

Correctly detect and use large Cremona database if installed

Modified:
  sage-mathematics/trunk/PKGBUILD

----------+
 PKGBUILD |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-03-11 17:44:30 UTC (rev 129081)
+++ PKGBUILD	2015-03-11 19:47:56 UTC (rev 129082)
@@ -71,8 +71,9 @@
   patch -p0 -i "$srcdir"/skip-check.patch
 # supress warning about GAP install dir
   sed -e "s|gapdir = os.path.join(SAGE_LOCAL, 'gap', 'latest')|gapdir = '/usr/lib/gap'|" -i src/sage/libs/gap/util.pyx 
-# use small Cremona database
-  sed -e "s|is_package_installed('database_cremona_ellcurve')|False|" -i src/sage/databases/cremona.py
+# fix Cremona database detection
+  sed -e "s|is_package_installed('database_cremona_ellcurve')|os.path.exists('/usr/share/sage/cremona/cremona.db')|" \
+   -i src/sage/databases/cremona.py
 
 # Upstream patches  
 # fix build against libfes 0.2 http://trac.sagemath.org/ticket/15209



More information about the arch-commits mailing list