Package: devscripts Version: 2.10.19 Severity: normal Tags: patch Currently build-rdeps only reports dependencies on the unstable distribution, which means it does not work if you run testing, or have unstable listed as 'sid' in your sources.list. Attached patch fixes build-rdeps to report on all the distributions for which *Sources files exist.
Best, Teemu -- Package-specific info: --- /etc/devscripts.conf --- --- ~/.devscripts --- -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (400, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages devscripts depends on: ii debianutils 2.28.4 Miscellaneous utilities specific t ii dpkg-dev 1.14.16.6 package building tools for Debian ii libc6 2.7-6 GNU C Library: Shared libraries ii perl 5.8.8-12 Larry Wall's Practical Extraction ii sed 4.1.5-6 The GNU sed stream editor Versions of packages devscripts recommends: ii fakeroot 1.9.3 Gives a fake root environment -- no debconf information
--- /usr/bin/build-rdeps 2008-03-16 18:19:54.000000000 +0100 +++ build-rdeps.new 2008-03-18 15:58:53.000000000 +0100 @@ -72,7 +72,7 @@ my $version = '1.0'; my $dctrl = "/usr/bin/grep-dctrl"; my $sources_path = "/var/lib/apt/lists/"; -my $source_pattern = ".*_dists_unstable_.*Sources\$"; +my $source_pattern = ".*_dists_.*_.*Sources\$"; my @source_files; my $sources_count=0; my $opt_debug; @@ -223,23 +223,15 @@ } foreach my $source_file (@source_files) { - if ($source_file =~ /main/) { - print "Reverse Build-depends in main:\n"; - print "------------------------------\n\n"; - findreversebuilddeps($package, "$sources_path/$source_file"); - } - - if ($source_file =~ /contrib/) { - print "Reverse Build-depends in contrib:\n"; - print "---------------------------------\n\n"; - findreversebuilddeps($package, "$sources_path/$source_file"); - } - - if ($source_file =~ /non-free/) { - print "Reverse Build-depends in non-free:\n"; - print "----------------------------------\n\n"; - findreversebuilddeps($package, "$sources_path/$source_file"); - } + my $dist = "unknown"; + my $section = "unknown"; + if ($source_file =~ /.*dists_(.*)_(.*)_.*_Sources$/) { + $dist = $1; + $section = $2; + } + print "Reverse Build-depends in $dist / $section:\n"; + print "------------------------------\n\n"; + findreversebuilddeps($package, "$sources_path/$source_file"); } =head1 LICENSE