From c5ccf1750dd00e8c4374162b302a0946f7fe3a96 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:55:44 +0000 Subject: Bug fixes, new major version Author: jgg Date: 2000-01-27 04:15:09 GMT Bug fixes, new major version --- methods/file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'methods') diff --git a/methods/file.cc b/methods/file.cc index f2bcf371a..298f06608 100644 --- a/methods/file.cc +++ b/methods/file.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: file.cc,v 1.7 1999/01/18 06:20:08 jgg Exp $ +// $Id: file.cc,v 1.8 2000/01/27 04:15:10 jgg Exp $ /* ###################################################################### File URI method for APT @@ -48,7 +48,7 @@ bool FileMethod::Fetch(FetchItem *Itm) Res.Filename = File; Res.LastModified = Buf.st_mtime; Res.IMSHit = false; - if (Itm->LastModified == Buf.st_mtime) + if (Itm->LastModified == Buf.st_mtime && Itm->LastModified != 0) Res.IMSHit = true; } @@ -64,7 +64,7 @@ bool FileMethod::Fetch(FetchItem *Itm) AltRes.Filename = File; AltRes.LastModified = Buf.st_mtime; AltRes.IMSHit = false; - if (Itm->LastModified == Buf.st_mtime) + if (Itm->LastModified == Buf.st_mtime && Itm->LastModified != 0) AltRes.IMSHit = true; URIDone(Res,&AltRes); -- cgit v1.2.3-70-g09d2