[libconfig-model-dpkg-perl] 01/01: Dpkg Dependency: optimize computation of cache expiration

dod at debian.org dod at debian.org
Thu Jan 30 20:18:00 UTC 2014


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 cd3ccfd5a0cd2e22cd914fe7705eda1b415b2ace
Author: Dominique Dumont <dod at debian.org>
Date:   Thu Jan 30 21:17:53 2014 +0100

    Dpkg Dependency: optimize computation of cache expiration
---
 lib/Config/Model/Dpkg/Dependency.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Config/Model/Dpkg/Dependency.pm b/lib/Config/Model/Dpkg/Dependency.pm
index f114ca6..c4e71e3 100644
--- a/lib/Config/Model/Dpkg/Dependency.pm
+++ b/lib/Config/Model/Dpkg/Dependency.pm
@@ -837,7 +837,7 @@ sub cache_info_from_madison {
 
     foreach my $pkg_name (@pkg_names) {
         my ($time, at res) = split / /, ($cache{$pkg_name} || '');
-        if (defined $time and $time =~ /^\d+$/ and $time + 24 * 60 * 60 * 7 > time) {
+        if (defined $time and $time =~ /^\d+$/ and $time > $cache_expire_date) {
             $async_log->debug("using cached info for $pkg_name");
         }
         else {

-- 
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