Package: apt-rdepends Version: 1.3.0-1 Severity: wishlist apt-cache and apt-get have a -o option, allowing to pass a configuration option to libapt. I use this to run apt-get and apt-source on another set of Packages and Sources files (example: run apt-cache on an Ubuntu package from Debian).
The following patch adds the same option to apt-rdepends. Please review my patch carefully, as my perl skills really suck. --- /usr/bin/apt-rdepends 2005-10-25 09:09:17.000000000 +0200 +++ /tmp/apt-rdepends 2006-01-05 23:27:10.000000000 +0100 @@ -42,7 +42,9 @@ my @follow = (); # Which types of dependencies do we show? my @show = (); - +# Which configuration options do we want to pass to libapt-pkg. +# The syntax is -o Foo::Bar=bar +my @configoptions = (); # We don't print package states by default. my $printstate = 0; # Which states should I follow? @@ -60,6 +62,7 @@ 'follow|f=s' => [EMAIL PROTECTED], 'show|s=s' => [EMAIL PROTECTED], 'print-state|p' => \$printstate, + 'option|o=s' => [EMAIL PROTECTED], 'state-follow=s' => [EMAIL PROTECTED], 'state-show=s' => [EMAIL PROTECTED], 'help|h|?' => \$help, @@ -103,6 +106,13 @@ $_config->init(); $_system = $_config->system(); +for my $opt (@configoptions) { + my $o; + my $v; + ($o, $v) = split(/\=/,$opt,2); + $_config->set($o, $v); +} + # Choose whether we're searching Depends or Build-Depends. my $cache = AptPkg::Cache->new(); my $source; -- | Lucas Nussbaum | [EMAIL PROTECTED] http://www.lucas-nussbaum.net/ | | jabber: [EMAIL PROTECTED] GPG: 1024D/023B3F4F | -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]