diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:44 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:55:44 +0000 |
commit | c5ccf1750dd00e8c4374162b302a0946f7fe3a96 (patch) | |
tree | e8a3a2416286e149fd645bc71f3c6447d050d8df /methods | |
parent | 8e34bee58db2ca432ff24d241c85c3e6eb14aecc (diff) |
Bug fixes, new major version
Author: jgg
Date: 2000-01-27 04:15:09 GMT
Bug fixes, new major version
Diffstat (limited to 'methods')
-rw-r--r-- | methods/file.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |