Revision: 5784
http://skim-app.svn.sourceforge.net/skim-app/?rev=5784&view=rev
Author: hofman
Date: 2009-09-22 23:34:05 +0000 (Tue, 22 Sep 2009)
Log Message:
-----------
Abort update when the temporary downloaded version is removed, e.g. when the
user waits to install
Modified Paths:
--------------
trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m
Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m 2009-09-22
22:03:50 UTC (rev 5783)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUBasicUpdateDriver.m 2009-09-22
23:34:05 UTC (rev 5784)
@@ -217,6 +217,11 @@
- (void)installUpdate
{
+ if ([[NSFileManager defaultManager] fileExistsAtPath:downloadPath] ==
NO)
+ {
+ [self abortUpdate];
+ return;
+ }
if ([[updater delegate]
respondsToSelector:@selector(updater:willInstallUpdate:)])
[[updater delegate] updater:updater
willInstallUpdate:updateItem];
// Copy the relauncher into a temporary directory so we can get to it
after the new version's installed.
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit