Fix logic of test for changed information for tidy object dates.

This commit is contained in:
rfm 2024-10-31 19:04:45 +00:00
parent 349dc21144
commit 3879f8e909
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2024-10-31 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSServicesManager.m: fix -laterDate: conditionals to be true
only when file date has been updated (returned value != receiver).
2024-10-29 Fred Kiefer <FredKiefer@gmx.de>
* Headers/AppKit/NSLayoutAnchor.h: Add missing include that is required after a change in base.

View file

@ -864,7 +864,8 @@ static NSString *disabledName = @".GNUstepDisabled";
attr = [mgr fileAttributesAtPath: _disabledPath
traverseLink: YES];
mod = [attr objectForKey: NSFileModificationDate];
if (_disabledStamp == nil || [_disabledStamp laterDate: mod] == mod)
if (_disabledStamp == nil
|| [_disabledStamp laterDate: mod] != _disabledStamp)
{
NSData *data;
id plist = nil;
@ -895,7 +896,8 @@ static NSString *disabledName = @".GNUstepDisabled";
attr = [mgr fileAttributesAtPath: _servicesPath
traverseLink: YES];
mod = [attr objectForKey: NSFileModificationDate];
if (_servicesStamp == nil || [_servicesStamp laterDate: mod] == mod)
if (_servicesStamp == nil
|| [_servicesStamp laterDate: mod] != _servicesStamp)
{
NSData *data;
id plist = nil;