Package: devscripts
Version: 2.10.35lenny7
Severity: wishlist
File: /usr/bin/build-rdeps
Tags: patch

build-rdeps will only find Sources files if you use "unstable" in your 
sources.list and will fail to find any Sources files if you list "sid".

i.e. this sources line will result in a message telling you to run apt-get 
update:

  deb-src http://ftp.uk.debian.org/debian/ sid main

where as this line will work fine:

  deb-src http://ftp.uk.debian.org/debian/ unstable main 

Both lines are accepted by apt and other programs that deal with Sources files 
will handle either just fine.

The attached patch allows for the use of either sid or unstable in the 
sources.list.

cheers
Stuart
--- /usr/local/bin/build-rdeps  2009-09-15 12:05:29.000000000 +0100
+++ /usr/bin/build-rdeps        2009-09-10 20:25:34.000000000 +0100
@@ -71,5 +71,5 @@
 my $dctrl = "/usr/bin/grep-dctrl";
 my $sources_path = "/var/lib/apt/lists/";
-my $source_pattern = ".*_dists_(sid|unstable)_.*Sources\$";
+my $source_pattern = ".*_dists_unstable_.*Sources\$";
 my @source_files;
 my $sources_count=0;

Reply via email to