This is an automated email from the git hooks/post-receive script.

ecc-guest pushed a commit to branch upstream
in repository approx.

commit cce432aa0d0487398236f29a5e3024650184829f
Author: Mark White <m...@celos.net>
Date:   Fri Feb 28 22:23:19 2014 +0000

    cache unknown file types for $interval
---
 approx.ml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/approx.ml b/approx.ml
index 7115994..f4b31d2 100644
--- a/approx.ml
+++ b/approx.ml
@@ -126,8 +126,11 @@ let serve_local name ims env =
         else Cache_miss mod_time
       end else if Release.immutable name || Release.valid name then
         deliver_if_newer ()
-      else
-        Cache_miss 0.
+      else begin
+        print_age mod_time ctime;
+        if minutes_old ctime <= interval then deliver_if_newer ()
+        else Cache_miss mod_time
+      end
   | None ->
       Cache_miss 0.
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to