r53280 - /trunk/dh-make-perl/lib/DhMakePerl.pm
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue Feb 23 20:16:09 UTC 2010
Author: dmn
Date: Tue Feb 23 20:16:04 2010
New Revision: 53280
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=53280
Log:
add bash-completion b-dep to b-d-i or b-d, depending on package being arch:all or arch:any
Modified:
trunk/dh-make-perl/lib/DhMakePerl.pm
Modified: trunk/dh-make-perl/lib/DhMakePerl.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl.pm?rev=53280&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl.pm Tue Feb 23 20:16:04 2010
@@ -2267,9 +2267,14 @@
$deps, 'quilt (>= 0.46-7)',
) if /dh\s+.*--with[= ]quilt/;
- $self->explained_dependency( 'dh -with=bash-completion',
- $depsi, 'bash-completion (>= 1:1.0-3)' )
- if (/dh\s+.*--with[= ]bash[-_]completion/);
+ # bash-completion dh integration is active in binary-arch or
+ # binary-indep targets, depending on "architecturality" of the package
+ # (all vs. any)
+ $self->explained_dependency(
+ 'dh -with=bash-completion',
+ $self->arch eq 'all' ? $depsi : $deps,
+ 'bash-completion (>= 1:1.0-3)'
+ ) if (/dh\s+.*--with[= ]bash[-_]completion/);
$self->explained_dependency( 'override_dh_* target',
$deps, 'debhelper (>= 7.0.50)' )
if /^override_dh_/;
More information about the Pkg-perl-cvs-commits
mailing list