[sagemath] 02/02: Report missing standard packages

Ximin Luo infinity0 at debian.org
Tue Jul 5 16:30:35 UTC 2016


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

infinity0 pushed a commit to branch master
in repository sagemath.

commit b372d62fe39b46865c4b2daa9e51a9952e2bf2c7
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Jul 5 18:29:22 2016 +0200

    Report missing standard packages
---
 debian/pruner/pruner.py.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/debian/pruner/pruner.py.in b/debian/pruner/pruner.py.in
index d25b9bc..91b3b5f 100644
--- a/debian/pruner/pruner.py.in
+++ b/debian/pruner/pruner.py.in
@@ -38,6 +38,11 @@ mkdir_if_needed (installed_dir)
 mkdir_if_needed ('@SAGE_ROOT@/local')
 mkdir_if_needed ('@SAGE_ROOT@/local/include')
 
+sage_standard_packages = set(subprocess.check_output([
+    '/bin/sh', '-c',
+    'for p in @SAGE_ROOT@/build/pkgs/*; do test $(cat $p/type) = standard && basename $p; done'
+]).split())
+
 dico = {
     'arb': @HAS_ARB@,
     'atlas': @HAS_ATLAS@,
@@ -165,6 +170,11 @@ dico = {
     'zn_poly': @HAS_ZNPOLY@
 }
 
+# report missing standard packages too
+for p in sage_standard_packages:
+    if p not in dico:
+        dico[p] = False
+
 for key, val in dico.items():
     if val:
         declare_system(key)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git



More information about the debian-science-commits mailing list