SUPackageInstaller should respect synchronously option

Bug #301640 reported by David Dauer
252
Affects Status Importance Assigned to Milestone
Sparkle
Confirmed
Medium
Unassigned

Bug Description

1.5b6:

the corrected method should be

+ (void)performInstallationWithPath:(NSString *)path host:(SUHost *)host delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id <SUVersionComparison>)comparator;
{
 ....

 NSTask *installer = [NSTask launchedTaskWithLaunchPath:installerPath arguments:[NSArray arrayWithObjects:path, nil]];
 if (synchronously) [installer waitUntilExit]; // changed here

 // Known bug: if the installation fails or is canceled, Sparkle goes ahead and restarts, thinking everything is fine.
 [self _finishInstallationWithResult:result host:host error:error delegate:delegate];
}

Revision history for this message
Andy Matuschak (andymatuschak) wrote :

This is actually a little trickier than that: making the change suggested would not actually ensure that the installation had completed when the method returned, which the caller could rely upon.

The consequence of this bug is not very significant, though (it affects apps which use .pkgs and which might want to postpone installation), and it would require a lot of work to fix, so I think I'm punting for 1.5.

Changed in sparkle:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.