From e7435964a2654b2e89fd1eafbe229dd7123417f6 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Sun, 30 Aug 2009 20:24:28 -0700 Subject: [PATCH] Fixing Bug #421608: "Update fails if more than one .app exists in the archive" --- SUInstaller.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/SUInstaller.m b/SUInstaller.m index b35cdbac..a070d882 100644 --- a/SUInstaller.m +++ b/SUInstaller.m @@ -68,14 +68,9 @@ } } - // 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)