[devscripts] 02/03: build-rdeps: Only match against package names

James McCoy jamessan at debian.org
Sat Dec 7 19:06:56 UTC 2013


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

jamessan pushed a commit to branch master
in repository devscripts.

commit fd812c1f4ebffe88b7e0733f72234b2e6b7819cd
Author: James McCoy <jamessan at debian.org>
Date:   Sat Dec 7 14:01:44 2013 -0500

    build-rdeps: Only match against package names
    
    Closes: #649165
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog       | 2 ++
 scripts/build-rdeps.pl | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index c5e03f4..9cdafd6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,8 @@ devscripts (2.13.6) UNRELEASED; urgency=medium
       (Closes: #684301)
     + Document the behavior of leaving the version out of the found command.
       (Closes: #683480)
+  * build-rdeps: Only match against package names instead of any substring of
+    Build-Depends(-Indep).  (Closes: #649165)
 
   [ Louis Bettens ]
   * debchange, mass-bug, bts: Replace call to date -R with strftime().
diff --git a/scripts/build-rdeps.pl b/scripts/build-rdeps.pl
index bc7cc64..357e002 100755
--- a/scripts/build-rdeps.pl
+++ b/scripts/build-rdeps.pl
@@ -221,7 +221,7 @@ sub findreversebuilddeps {
 	my $count=0;
 	my $maintainer_info='';
 
-	open(PACKAGES, "$dctrl -F Build-Depends,Build-Depends-Indep $package -s Package,Build-Depends,Build-Depends-Indep,Maintainer $source_file|");
+	open(PACKAGES, '-|', $dctrl, '-r', '-F', 'Build-Depends,Build-Depends-Indep', "\\(^\\|, \\)$package", '-s', 'Package,Build-Depends,Build-Depends-Indep,Maintainer', $source_file);
 
 	while(<PACKAGES>) {
 		chomp;

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



More information about the devscripts-devel mailing list