Skip to content

Commit

Permalink
Fixing Bug #421608: "Update fails if more than one .app exists in the…
Browse files Browse the repository at this point in the history
… archive"
  • Loading branch information
andymatuschak committed Aug 31, 2009
1 parent 8ea1546 commit e743596
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions SUInstaller.m
Expand Up @@ -68,14 +68,9 @@ + (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host
}
}

// Some DMGs have symlinks into /Applications! That's no good! And there's no point in looking in bundles.
if ([self _isAliasFolderAtPath:currentPath] ||
[[currentFile pathExtension] isEqualToString:[[host bundlePath] pathExtension]] ||
[[currentFile pathExtension] isEqualToString:@"pkg"] ||
[[currentFile pathExtension] isEqualToString:@"mpkg"])
{
// Some DMGs have symlinks into /Applications! That's no good!
if ([self _isAliasFolderAtPath:currentPath])
[dirEnum skipDescendents];
}
}

if (newAppDownloadPath == nil)
Expand Down

0 comments on commit e743596

Please sign in to comment.