[libconfig-model-dpkg-perl] 01/02: fix new dual life dependency corner case uncovered by last corner case fix
dod at debian.org
dod at debian.org
Sat Sep 21 18:51:27 UTC 2013
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.
commit 43355850b2f1266b578c9eb9bbc26a167d683f10
Author: Dominique Dumont <dod at debian.org>
Date: Sat Sep 21 20:50:18 2013 +0200
fix new dual life dependency corner case uncovered by last corner case fix
---
lib/Config/Model/Dpkg/Dependency.pm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index 84ee7cc..43591a3 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -428,11 +428,16 @@ sub check_perl_lib_dep {
$on_get_lib_version = sub {
$async_log->debug("on_get_lib_version called with @_") ;
# get_available_version returns oldest first, like (etch,1.2,...)
- my $oldest_lib_version_in_debian = $_[1] ;
+ my ($oldest_debian_with_lib,$oldest_lib_version_in_debian) = @_[0,1] ;
# lob off debian release number
$oldest_lib_version_in_debian =~ s/-.*//;
- my $check_v = $dep_v || $oldest_lib_version_in_debian ;
- $logger->debug("dual life $dep_name has oldest debian $oldest_lib_version_in_debian, using $check_v");
+ my $check_v = $dep_v ;
+ # take ldest version only if the oldest version is NOT in oldstable
+ if ($oldest_debian_with_lib =~ /wheezy|jessie|sid/) {
+ $check_v ||= $oldest_lib_version_in_debian ;
+ $logger->debug("dual life $dep_name has oldest debian $oldest_lib_version_in_debian, using $check_v");
+ }
+
my ($cpan_dep_v, $epoch_dep_v) ;
($cpan_dep_v, $epoch_dep_v) = reverse split /:/ ,$check_v if defined $check_v ;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git
More information about the Pkg-perl-cvs-commits
mailing list