[Debian-in-commits] [debian-in] 01/01: Use reverse-depends tool from ubuntu-dev-tools instead of apt-cache rdepends.

Vasudev Kamath vasudev-guest at alioth.debian.org
Mon Sep 9 05:15:08 UTC 2013


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

vasudev-guest pushed a commit to branch master
in repository debian-in.

commit f4416b71e371e9f7e39ae3752e82a5a95916d647
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date:   Mon Sep 9 10:39:52 2013 +0530

    Use reverse-depends tool from ubuntu-dev-tools instead of apt-cache rdepends.
---
 attic/scripts/print-rdeps |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/attic/scripts/print-rdeps b/attic/scripts/print-rdeps
index 6717bc6..8b0bf74 100755
--- a/attic/scripts/print-rdeps
+++ b/attic/scripts/print-rdeps
@@ -1,6 +1,11 @@
 #!/bin/sh
 set -eu
 
+if [ ! -f "/usr/bin/reverse-depends" ]; then
+    echo "Please install ubuntu-dev-tools package" >&2
+    exit 2
+fi
+
 while true; do
     case "$1" in
 	--maintainers)
@@ -26,5 +31,5 @@ done
 
 for package in "$@"; do
     echo "----- $package -----"
-    apt-cache rdepends "$package" | sed -n 's/^\s//p' | xargs dd-list "$option"
+    reverse-depends -s --list "$package" | xargs dd-list "$option"
 done

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



More information about the Debian-in-commits mailing list