Author: doogie
Date: 2002-11-22 07:19:51 GMT
s/st_mtime/mtime/ on our local stat structure in apt-ftparchive, to support
compliation on platforms where st_mtime is a macro.
instead of stdout. Also, errors that occur no longer go to stdout,
but stderr. Closes: #161592
* Test for timegm in configure. Closes: #165516.
instead of stdout. Also, errors that occur no longer go to stdout,
but stderr. Closes: #161592
* Test for timegm in configure. Closes: #165516.
+ * s/st_mtime/mtime/ on our local stat structure in apt-ftparchive, to
+ support compliation on platforms where st_mtime is a macro. Closes:
+ #165518
-- Jason Gunthorpe <jgg@debian.org> Sun, 15 Sep 2002 17:16:59 -0600
-- Jason Gunthorpe <jgg@debian.org> Sun, 15 Sep 2002 17:16:59 -0600
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cachedb.cc,v 1.3 2001/05/29 03:50:33 jgg Exp $
+// $Id: cachedb.cc,v 1.4 2002/11/22 07:19:51 doogie Exp $
/* ######################################################################
CacheDB
/* ######################################################################
CacheDB
// Lookup the stat info and confirm the file is unchanged
if (Get() == true)
{
// Lookup the stat info and confirm the file is unchanged
if (Get() == true)
{
- if (CurStat.st_mtime != htonl(St.st_mtime))
+ if (CurStat.mtime != htonl(St.st_mtime))
- CurStat.st_mtime = htonl(St.st_mtime);
+ CurStat.mtime = htonl(St.st_mtime);
CurStat.Flags = 0;
_error->Warning("File date has changed %s",FileName.c_str());
}
}
else
{
CurStat.Flags = 0;
_error->Warning("File date has changed %s",FileName.c_str());
}
}
else
{
- CurStat.st_mtime = htonl(St.st_mtime);
+ CurStat.mtime = htonl(St.st_mtime);
CurStat.Flags = 0;
}
CurStat.Flags = ntohl(CurStat.Flags);
CurStat.Flags = 0;
}
CurStat.Flags = ntohl(CurStat.Flags);
{
// Optimize away some writes.
if (CurStat.Flags == OldStat.Flags &&
{
// Optimize away some writes.
if (CurStat.Flags == OldStat.Flags &&
- CurStat.st_mtime == OldStat.st_mtime)
+ CurStat.mtime == OldStat.st_mtime)
return true;
// Write the stat information
return true;
// Write the stat information
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cachedb.h,v 1.2 2001/02/20 07:03:18 jgg Exp $
+// $Id: cachedb.h,v 1.3 2002/11/22 07:19:51 doogie Exp $
/* ######################################################################
CacheDB
/* ######################################################################
CacheDB
enum FlagList {FlControl = (1<<0),FlMD5=(1<<1),FlContents=(1<<2)};
struct StatStore
{
enum FlagList {FlControl = (1<<0),FlMD5=(1<<1),FlContents=(1<<2)};
struct StatStore
{
uint32_t Flags;
} CurStat;
struct StatStore OldStat;
uint32_t Flags;
} CurStat;
struct StatStore OldStat;