diff options
author | Niko Tyni <ntyni@debian.org> | 2010-05-08 13:32:27 +0300 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-11 16:51:46 -0400 |
commit | 8835232b3202c373c2297121c70df62dbfa2b515 (patch) | |
tree | be18755152c510d48249aef504e1c034ad06d27a /dh_perl | |
parent | c77e9d08ced12f8180a3f1c173570cbfe569c2da (diff) | |
download | debhelper-8835232b3202c373c2297121c70df62dbfa2b515.tar.gz |
Use $Config{debian_abi} to generate the perlapi-* dependency
As per the upcoming policy change discussed in #579457,
perlapi-$Config{debian_abi} is preferred over perlapi-$Config{version}
where available.
Diffstat (limited to 'dh_perl')
-rwxr-xr-x | dh_perl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -128,7 +128,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) { unless $perl eq 'perl-base' && ! length($version); # add perlapi-<ver> for XS modules - addsubstvar($package, "perl:Depends", "perlapi-$Config{version}") + addsubstvar($package, "perl:Depends", + "perlapi-" . ($Config{debian_abi} || $Config{version})) if $deps & XS_MODULE; } |