On Sat, 2005-12-31 at 06:00 -0500, Nathanael Nerode wrote:
> Jeroen van Wolffelaar wrote:
[...]
> > cvm, mailfront and vpopmail are not migrated yet, so it hasn't been done
> > yet. I only checked cvm, and on that package, there isn't even a bug
> > filed requesting it to be migrated.
> > 
> > What's up?
> 
> Oops, missed some.  :-P  Finding reverse build-depends (when there are
> no "Depends") is annoyingly difficult.  Got a script which does it
> efficiently and accurately?  :-P    Cause I'd really like one.

It should be fairly trivial for a single distribution and architecture,
given an appropriate deb-src line in sources.list (extending beyond a
single distribution would require some further work on the apt-cache
invocation), viz:

#!/bin/sh
BINPKGS="($(apt-cache showsrc $1 | egrep "^Binary:" | cut -d" " -f2- | \
  sed -e 's/, /|/g'))"
grep-dctrl -sPackage -e -FBuild-Depends "$BINPKGS" \
  /var/lib/apt/lists/*_Sources | sort -g | uniq

and pass it a source package name. Extending it to cope with binary
package names isn't particularly difficult.

Regards,

Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to