Skip to content

Commit

Permalink
Fixing Bug #396495: "Wrong method name"
Browse files Browse the repository at this point in the history
Just a convention mismatch in a private method.
  • Loading branch information
andymatuschak committed Aug 21, 2009
1 parent 975f679 commit cfe5206
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SUPlainInstallerInternals.m
Expand Up @@ -95,7 +95,7 @@ + (BOOL)currentUserOwnsPath:(NSString *)oPath
return res;
}

+ (NSString *)_temporaryCopyNameForPath:(NSString *)path
+ (NSString *)_temporaryInstallationPathForPath:(NSString *)path
{
// Let's try to read the version number so the filename will be more meaningful.
NSString *postFix;
Expand All @@ -121,7 +121,7 @@ + (NSString *)_temporaryCopyNameForPath:(NSString *)path

+ (BOOL)_copyPathWithForcedAuthentication:(NSString *)src toPath:(NSString *)dst error:(NSError **)error
{
NSString *tmp = [self _temporaryCopyNameForPath:dst];
NSString *tmp = [self _temporaryInstallationPathForPath:dst];
const char* srcPath = [src fileSystemRepresentation];
const char* tmpPath = [tmp fileSystemRepresentation];
const char* dstPath = [dst fileSystemRepresentation];
Expand Down Expand Up @@ -233,7 +233,7 @@ + (BOOL)copyPathWithAuthentication:(NSString *)src overPath:(NSString *)dst erro
if (![[NSFileManager defaultManager] isWritableFileAtPath:dst] || ![[NSFileManager defaultManager] isWritableFileAtPath:[dst stringByDeletingLastPathComponent]])
return [self _copyPathWithForcedAuthentication:src toPath:dst error:error];

NSString *tmpPath = [self _temporaryCopyNameForPath:dst];
NSString *tmpPath = [self _temporaryInstallationPathForPath:dst];
#if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5
if (![[NSFileManager defaultManager] movePath:dst toPath:tmpPath handler:nil])
#else
Expand Down

0 comments on commit cfe5206

Please sign in to comment.