mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fixup equality tests for dates
This commit is contained in:
parent
cac43f7bfc
commit
cfa3cd3435
1 changed files with 5 additions and 5 deletions
|
@ -1399,7 +1399,7 @@ main(int argc, char **argv, char **env)
|
|||
attrs = [mgr fileAttributesAtPath: sfile
|
||||
traverseLink: YES];
|
||||
d = [attrs fileModificationDate];
|
||||
if (sDate == nil || [d earlierDate: sDate] == sDate)
|
||||
if (sDate == nil || [d earlierDate: sDate] != d)
|
||||
{
|
||||
sDate = d;
|
||||
IF_NO_ARC([[sDate retain] autorelease];)
|
||||
|
@ -1427,7 +1427,7 @@ main(int argc, char **argv, char **env)
|
|||
|
||||
attrs = [mgr fileAttributesAtPath: ofile traverseLink: YES];
|
||||
d = [attrs fileModificationDate];
|
||||
if (gDate == nil || [d laterDate: gDate] == gDate)
|
||||
if (gDate == nil || [d laterDate: gDate] != d)
|
||||
{
|
||||
gDate = d;
|
||||
IF_NO_ARC([[gDate retain] autorelease];)
|
||||
|
@ -1439,7 +1439,7 @@ main(int argc, char **argv, char **env)
|
|||
}
|
||||
}
|
||||
|
||||
if (gDate == nil || [sDate earlierDate: gDate] == gDate)
|
||||
if (gDate == nil || [sDate earlierDate: gDate] != sDate)
|
||||
{
|
||||
NSArray *modified;
|
||||
|
||||
|
@ -1670,7 +1670,7 @@ main(int argc, char **argv, char **env)
|
|||
* unless the project index is already more up to date than
|
||||
* this file (or the gsdoc file does not exist of course).
|
||||
*/
|
||||
if (gDate != nil && [gDate earlierDate: rDate] == rDate)
|
||||
if (gDate != nil && [gDate earlierDate: rDate] != gDate)
|
||||
{
|
||||
if (showDependencies == YES)
|
||||
{
|
||||
|
@ -2152,7 +2152,7 @@ main(int argc, char **argv, char **env)
|
|||
|
||||
if ([mgr isReadableFileAtPath: gsdocfile] == YES)
|
||||
{
|
||||
if (hDate == nil || [gDate earlierDate: hDate] == hDate)
|
||||
if (hDate == nil || [gDate earlierDate: hDate] != gDate)
|
||||
{
|
||||
NSData *d;
|
||||
GSXMLNode *root;
|
||||
|
|
Loading…
Reference in a new issue