version 1.33, 2005/05/12 17:32:16 |
version 1.34, 2005/05/19 04:17:24 |
|
|
static int |
static int |
cvs_resp_modtime(struct cvsroot *root, int type, char *line) |
cvs_resp_modtime(struct cvsroot *root, int type, char *line) |
{ |
{ |
cvs_modtime = cvs_datesec(line, CVS_DATE_RFC822, 1); |
cvs_modtime = cvs_date_parse(line); |
return (0); |
return (0); |
} |
} |
|
|
|
|
|
|
if (cvs_modtime != CVS_DATE_DMSEC) { |
if (cvs_modtime != CVS_DATE_DMSEC) { |
ep->ce_mtime = cvs_modtime; |
ep->ce_mtime = cvs_modtime; |
cvs_modtime = CVS_DATE_DMSEC; /* invalidate */ |
|
} else |
} else |
ep->ce_mtime = time(&(ep->ce_mtime)); |
ep->ce_mtime = time(&(ep->ce_mtime)); |
|
|
|
|
if (utimes(path, tv) == -1) |
if (utimes(path, tv) == -1) |
cvs_log(LP_ERRNO, "failed to set file timestamps"); |
cvs_log(LP_ERRNO, "failed to set file timestamps"); |
} |
} |
|
|
|
/* invalidate last received timestamp */ |
|
cvs_modtime = CVS_DATE_DMSEC; |
|
|
/* now see if there is a checksum */ |
/* now see if there is a checksum */ |
if (cvs_fcksum != NULL) { |
if (cvs_fcksum != NULL) { |