Revision: 5497
http://skim-app.svn.sourceforge.net/skim-app/?rev=5497&view=rev
Author: hofman
Date: 2009-07-19 16:53:07 +0000 (Sun, 19 Jul 2009)
Log Message:
-----------
Move old version back when installation fails
Modified Paths:
--------------
trunk/vendorsrc/andymatuschak/Sparkle/SUPlainInstallerInternals.m
Modified: trunk/vendorsrc/andymatuschak/Sparkle/SUPlainInstallerInternals.m
===================================================================
--- trunk/vendorsrc/andymatuschak/Sparkle/SUPlainInstallerInternals.m
2009-07-19 13:17:35 UTC (rev 5496)
+++ trunk/vendorsrc/andymatuschak/Sparkle/SUPlainInstallerInternals.m
2009-07-19 16:53:07 UTC (rev 5497)
@@ -225,6 +225,8 @@
err = FSCopyObjectSync(&srcRef, &targetRef, NULL, NULL, 0);
if (err != noErr)
{
+ // We better move the old version back to its old location
+ FSMoveObjectSync(&movedRef, &targetRef, (CFStringRef)[dst
lastPathComponent], &movedRef, 0);
if (error != NULL)
*error = [NSError errorWithDomain:SUSparkleErrorDomain
code:SUFileCopyFailure userInfo:[NSDictionary dictionaryWithObject:[NSString
stringWithFormat:@"Couldn't copy %@ to %...@.", src, dst]
forKey:NSLocalizedDescriptionKey]];
return NO;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit