r44884 - in /trunk/dh-make-perl: debian/changelog lib/DhMakePerl.pm
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Sep 26 21:05:52 UTC 2009
Author: gregoa
Date: Sat Sep 26 21:05:40 2009
New Revision: 44884
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=44884
Log:
Only add a dependency on perl-modules if we need a newer version than the
one in oldstable.
Modified:
trunk/dh-make-perl/debian/changelog
trunk/dh-make-perl/lib/DhMakePerl.pm
Modified: trunk/dh-make-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/debian/changelog?rev=44884&op=diff
==============================================================================
--- trunk/dh-make-perl/debian/changelog (original)
+++ trunk/dh-make-perl/debian/changelog Sat Sep 26 21:05:40 2009
@@ -13,6 +13,8 @@
* Re-add "NO_NETWORK=1" to tests in debian/rules, got lost somewhere.
* Call dh with "--buildsystem=perl_build", otherwise dh_auto_install gets
confused by the existing Makefile.PL without a Makefile.
+ * Only add a dependency on perl-modules if we need a newer version than the
+ one in oldstable.
[ Damyan Ivanov ]
* Drop support for debhelper compatibility levels other than 7
Modified: trunk/dh-make-perl/lib/DhMakePerl.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/DhMakePerl.pm?rev=44884&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/DhMakePerl.pm (original)
+++ trunk/dh-make-perl/lib/DhMakePerl.pm Sat Sep 26 21:05:40 2009
@@ -1078,11 +1078,13 @@
my $debs = Debian::Dependencies->new();
foreach my $module ( keys(%$dep_hash) ) {
+ my $dep;
if ( my $ver = $self->is_core_module( $module, $dep_hash->{$module} )
) {
print "= $module is a core module\n" if $self->cfg->verbose;
- $debs->add( 'perl-modules', $ver );
+ $dep = Debian::Dependency->new( 'perl-modules', $ver );
+ $debs->add($dep) if $dep->satisfies( "perl-modules (>= $oldest_perl_version)" );
next;
}
More information about the Pkg-perl-cvs-commits
mailing list