[sagemath] 01/01: Add the possibility to show deps for other packages too

Ximin Luo infinity0 at debian.org
Sat Oct 15 14:08:21 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 df8f9eca8603bd634021b4b8b8e50c77a634138a
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sat Oct 15 16:07:58 2016 +0200

    Add the possibility to show deps for other packages too
---
 debian/show-deps.sh | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/show-deps.sh b/debian/show-deps.sh
index a4b2c38..0daae2f 100755
--- a/debian/show-deps.sh
+++ b/debian/show-deps.sh
@@ -1,8 +1,12 @@
 #!/bin/sh
 # Show sagemath's build dependencies. (You should run `mk-build-deps` first.)
-# Usage: ./$0 [by-size|by-date] [extra aptitude filter]
+#
+# Usage: [pkg=$pkg] ./$0 [by-size|by-date] [extra aptitude filter]
+#
 # e.g. give ~i to only list packages installed on your system.
-pkg=sagemath-build-deps
+# Set pkg=XXX to show other packages, e.g. `pkg=r-base-core ./$0 by-date`
+#
+pkg="${pkg:-~Rsagemath-build-deps}"
 d=~R
 r=~Rrecommends:
 
@@ -10,8 +14,8 @@ case "$1" in
 by-size|by-date) subcmd="$1"; shift;;
 *) subcmd="";;
 esac
-# 3 levels of dependencies should be enough; we also include recommends just in case
-pattern="($d$pkg|$d$d$pkg|$r$d$pkg|$d$d$d$pkg|$d$r$d$pkg|$r$d$d$pkg|$r$r$d$pkg) $1"
+# 2 more levels of depends/recommends should be enough
+pattern="($pkg|$d$pkg|$r$pkg|$d$d$pkg|$d$r$pkg|$r$d$pkg|$r$r$pkg) $1"
 
 last_updated() {
 	local pkg="$1"

-- 
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