Corrected method name.

This commit is contained in:
Dmytro Tretiakov committed 2014-07-31 15:09:30 +03:00
1 parent d25e96f220
commit 1c09a01ef9
3 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@
- (BOOL)updateInProgress;
- (BOOL)isUpdateInProgress;
- (BOOL)installationInProgress;
@end
+1 -1
View File
@@ -45,7 +45,7 @@ static NSMutableDictionary *sharedUpdaters = nil;
static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
- (BOOL)isUpdateInProgress
- (BOOL)installationInProgress
{
BOOL result = NO;
@try
+7 -2
View File
@@ -54,6 +54,13 @@ selfPath: (NSString*)inSelfPath alreadyInstalled:(BOOL)inalreadyInstalled
shouldRelaunch = relaunch;
alreadyInstalled = inalreadyInstalled;
if (NULL != hostpath)
{
NSString *bundlePath = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:hostpath length:strlen(hostpath)];
NSBundle *theBundle = [NSBundle bundleWithPath:bundlePath];
host = [[SUHost alloc] initWithBundle: theBundle];
}
BOOL alreadyTerminated = (getppid() == 1); // ppid is launchd (1) => parent terminated already
if( alreadyTerminated )
@@ -143,8 +150,6 @@ selfPath: (NSString*)inSelfPath alreadyInstalled:(BOOL)inalreadyInstalled
- (void) install
{
NSBundle *theBundle = [NSBundle bundleWithPath: [[NSFileManager defaultManager] stringWithFileSystemRepresentation: hostpath length:strlen(hostpath)]];
host = [[SUHost alloc] initWithBundle: theBundle];
installationPath = [[host installationPath] copy];
// Perhaps a poor assumption but: if we're not relaunching, we assume we shouldn't be showing any UI either. Because non-relaunching installations are kicked off without any user interaction, we shouldn't be interrupting them.