From d9874d3a3188897a9e898ca5cb3aa3c94e2d765a Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 5 Jan 2011 13:15:20 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20for=20re-copying=20default=20?= =?UTF-8?q?bundles=20after=20launching=20SP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPAppController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPAppController.m b/Source/SPAppController.m index ca8c3dcc..c9fc9b01 100644 --- a/Source/SPAppController.m +++ b/Source/SPAppController.m @@ -1405,7 +1405,7 @@ if([cmdData objectForKey:SPBundleFileUUIDKey] && [[cmdData objectForKey:SPBundleFileUUIDKey] length]) { - if(processDefaultBundles) { + if(doBundleUpdate && processDefaultBundles) { // Skip deleted default Bundles BOOL bundleWasDeleted = NO; @@ -1421,7 +1421,7 @@ // If default Bundle is already install check for possible update, // if so duplicate the modified one by appending (user) and updated it - if(doBundleUpdate && [installedBundleUUIDs objectForKey:[cmdData objectForKey:SPBundleFileUUIDKey]]) { + if([installedBundleUUIDs objectForKey:[cmdData objectForKey:SPBundleFileUUIDKey]]) { NSString *oldPath = [NSString stringWithFormat:@"%@/%@/%@", [bundlePaths objectAtIndex:0], bundle, SPBundleFileName]; NSError *readError = nil; -- cgit v1.2.3