mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Changed a few NSLogs() to SULogs().
This commit is contained in:
1 parent
9788c6849e
commit
4f8d745305
5 files changed
+5
-5
No files matched your search
+1
-1
@@ -169,7 +169,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
NSLog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict);
|
||||
SULog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict);
|
||||
}
|
||||
[nodesDict removeAllObjects];
|
||||
[dict removeAllObjects];
|
||||
|
||||
+1
-1
@@ -180,7 +180,7 @@
|
||||
if( theInfoURL )
|
||||
{
|
||||
if( ![theInfoURL isKindOfClass: [NSString class]] )
|
||||
NSLog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type.");
|
||||
SULog(@"SUAppcastItem -initWithDictionary: Info URL is not of valid type.");
|
||||
else
|
||||
[self setInfoURL:[NSURL URLWithString:theInfoURL]];
|
||||
}
|
||||
|
||||
@@ -121,6 +121,8 @@ static NSString* sUpdateFolder = nil;
|
||||
{
|
||||
// *** GETS CALLED ON NON-MAIN THREAD!
|
||||
|
||||
SULog( @"mdimporting" );
|
||||
|
||||
NSTask *mdimport = [[[NSTask alloc] init] autorelease];
|
||||
[mdimport setLaunchPath:@"/usr/bin/mdimport"];
|
||||
[mdimport setArguments:[NSArray arrayWithObject:[host installationPath]]];
|
||||
|
||||
@@ -41,14 +41,12 @@ NSString *SUInstallerErrorKey = @"SUInstallerError";
|
||||
NSString * installationPath = [[info objectForKey:SUInstallerHostKey] installationPath];
|
||||
BOOL result = [self copyPathWithAuthentication:[info objectForKey:SUInstallerPathKey] overPath: installationPath temporaryName:[info objectForKey:SUInstallerTempNameKey] error:&error];
|
||||
|
||||
//NSLog( @"oldPath = %@ installationPath = %@", oldPath, installationPath );
|
||||
if( result )
|
||||
{
|
||||
BOOL haveOld = [[NSFileManager defaultManager] fileExistsAtPath: oldPath];
|
||||
BOOL differentFromNew = ![oldPath isEqualToString: installationPath];
|
||||
if( haveOld && differentFromNew )
|
||||
[self _movePathToTrash: oldPath]; // On success, trash old copy if there's still one due to renaming.
|
||||
//NSLog( @"haveOld = %s differentFromNew = %s", (haveOld? "YES":"NO"), (differentFromNew? "YES":"NO") );
|
||||
}
|
||||
NSMutableDictionary *mutableInfo = [[info mutableCopy] autorelease];
|
||||
[mutableInfo setObject:[NSNumber numberWithBool:result] forKey:SUInstallerResultKey];
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
|
||||
|
||||
[pool release];
|
||||
NS_HANDLER
|
||||
NSLog(@"UNCAUGHT EXCEPTION IN UPDATE CHECK TIMER: %@",[localException reason]);
|
||||
SULog(@"UNCAUGHT EXCEPTION IN UPDATE CHECK TIMER: %@",[localException reason]);
|
||||
// Don't propagate the exception beyond here. In Carbon apps that would trash the stack.
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user