Package: dh-make-perl Version: 0.75-1 Severity: important Tags: patch dh-make-perl doesn't seem to understand packages that have a name like Foo-Bar-v1.0.0, only ones named Foo-Bar-1.0.0. Attached tiny patch fixes this.
-- System Information: Debian Release: 7.0 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.7.4 (SMP w/12 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dh-make-perl depends on: ii debhelper 9.20120909 ii dpkg-dev 1.16.9 ii fakeroot 1.18.4-2 ii libapt-pkg-perl 0.1.26+b1 ii libarray-unique-perl 0.08-1 ii libclass-accessor-perl 0.34-1 ii libdpkg-perl 1.16.9 ii libemail-address-perl 1.895-1 ii libemail-date-format-perl 1.002-1 ii libfile-which-perl 1.09-1 ii liblist-moreutils-perl 0.33-1+b1 ii libmodule-depends-perl 0.16-1 ii libparse-debcontrol-perl 2.005-3 ii libparse-debianchangelog-perl 1.2.0-1 ii libsoftware-license-perl 0.103004-2 ii libtie-ixhash-perl 1.21-2 ii libwww-mechanize-perl 1.71-1 ii libyaml-perl 0.81-1 ii make 3.81-8.2 ii perl 5.14.2-18 ii perl-modules [libmodule-corelist-perl] 5.14.2-18 Versions of packages dh-make-perl recommends: ii apt-file 2.5.1 ii git 1:1.7.10.4-1+wheezy1 pn pristine-tar <none> dh-make-perl suggests no packages. -- no debconf information
diff --git a/lib/DhMakePerl/Command/make.pm b/lib/DhMakePerl/Command/make.pm index 4ce91d4..68092ba 100644 --- a/lib/DhMakePerl/Command/make.pm +++ b/lib/DhMakePerl/Command/make.pm @@ -272,7 +272,7 @@ sub setup_dir { } elsif ( $dist = find_cpan_distribution( $self->cfg->cpan ) ) { my $ver; - if ( $dist->base_id =~ /-(\d[\d._]*)\./ ) { + if ( $dist->base_id =~ /-v?(\d[\d._]*)\./ ) { $self->mod_cpan_version($1); } else {