[diffoscope] 01/01: debian/check-dep-sizes: fix query to cover all depth {1, 2} {depends, recommends} relationships
Ximin Luo
infinity0 at debian.org
Thu Sep 22 11:48:54 CEST 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository diffoscope.
commit 6aaf035572a2c327f9a310aa07306829f9560fb2
Author: Ximin Luo <infinity0 at debian.org>
Date: Thu Sep 22 11:48:24 2016 +0200
debian/check-dep-sizes: fix query to cover all depth {1,2} {depends, recommends} relationships
---
debian/check-dep-sizes.sh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/check-dep-sizes.sh b/debian/check-dep-sizes.sh
index 7d6bc9b..75dcc6e 100755
--- a/debian/check-dep-sizes.sh
+++ b/debian/check-dep-sizes.sh
@@ -1,7 +1,10 @@
#!/bin/sh
# Check sizes of diffoscope's dependencies (including recommends)
# Give ~i to only list packages installed on your system.
-LC_ALL=C aptitude search '~Rrecommends:diffoscope|~R~Rrecommends:diffoscope'" $1" \
+pkg=diffoscope
+d=~R
+r=~Rrecommends:
+LC_ALL=C aptitude search "($d$pkg|$r$pkg|$d$d$pkg|$d$r$pkg|$r$d$pkg|$r$r$pkg) $1" \
--disable-columns -F '%I %p' \
| sed -e 's/ kB / KB /g' \
| LC_ALL=C sort -k2,2 -k1n,1n \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list