r56178 - /trunk/dh-make-perl/lib/Debian/AptContents.pm
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Fri Apr 16 14:48:35 UTC 2010
Author: dmn
Date: Fri Apr 16 14:48:27 2010
New Revision: 56178
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=56178
Log:
find_perl_module_package: no dependencies on ancient perls
when a module is found in core, do not create a versioned dependency on
perl if that would point to a version before oldstable
Modified:
trunk/dh-make-perl/lib/Debian/AptContents.pm
Modified: trunk/dh-make-perl/lib/Debian/AptContents.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/lib/Debian/AptContents.pm?rev=56178&op=diff
==============================================================================
--- trunk/dh-make-perl/lib/Debian/AptContents.pm (original)
+++ trunk/dh-make-perl/lib/Debian/AptContents.pm Fri Apr 16 14:48:27 2010
@@ -42,6 +42,8 @@
use AptPkg::Config;
$AptPkg::Config::_config->init();
+
+our $oldstable_perl = '5.8.8';
=head1 CONSTRUCTOR
@@ -441,6 +443,16 @@
my $running_perl = $Config::Config{version};
if ($core_dep) {
+
+ # the core dependency is satosfied by oldstable?
+ if ( deb_ver_cmp( $core_dep->ver, $oldstable_perl ) <= 0 ) {
+ # drop the direct dependency and remove the version
+ undef($direct_dep);
+
+ $core_dep->ver(undef);
+ $core_dep->rel(undef);
+ }
+
if ($direct_dep) {
# both in core and in a package.
if( deb_ver_cmp($running_perl, $core_dep->ver) >= 0 ) {
More information about the Pkg-perl-cvs-commits
mailing list