[devscripts] 02/02: build-rdeps: Recognize arch-qualified package names

James McCoy jamessan at debian.org
Fri Sep 12 01:42:36 UTC 2014


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

jamessan pushed a commit to branch master
in repository devscripts.

commit c0c7b7dc79d3ec94c8b2978eaba161fc6639f00c
Author: James McCoy <jamessan at debian.org>
Date:   Wed Sep 10 10:50:04 2014 -0400

    build-rdeps: Recognize arch-qualified package names
    
    Closes: #757807
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog       | 2 ++
 scripts/build-rdeps.pl | 3 +--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b34fc87..30af30e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,8 @@ devscripts (2.14.7) UNRELEASED; urgency=low
   * dcmd: Add --debtar option and restrict --tar/--orig to orig.tar.*.  Thanks
     to Osamu Aoki for the patch.  (Closes: #622561)
   * grep-excuses: Remove useless call to “hostname --fqdn”.  (Closes: #758668)
+  * build-rdeps: Recognize arch-qualified package names.  Thanks to Stuart
+    Prescott for the patch.  (Closes: #757807)
 
   [ Benjamin Drung ]
   * Remove unused build-dependencies libjson-perl and libterm-size-perl
diff --git a/scripts/build-rdeps.pl b/scripts/build-rdeps.pl
index 357e002..dbbb98f 100755
--- a/scripts/build-rdeps.pl
+++ b/scripts/build-rdeps.pl
@@ -238,11 +238,10 @@ sub findreversebuilddeps {
 		elsif (/Build-Depends: (.*)$/ or /Build-Depends-Indep: (.*)$/) {
 			if ($depending_package) {
 				print STDERR "$1\n" if ($opt_debug);
-				if ($1 =~ /^(.*\s)?\Q$package\E([\s,]|$)/) {
+				if ($1 =~ /^(.*\s)?\Q$package\E(?::[a-zA-Z0-9][a-zA-Z0-9-]*)?([\s,]|$)/) {
 					$packages{$depending_package}->{'Build-Depends'} = 1;
 				}
 			}
-
 		}
 	}
 

-- 
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