Changeset 250
- Timestamp:
- 01/06/07 12:41:21 (2 years ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.m (modified) (4 diffs)
- trunk/Perian.xcodeproj/project.pbxproj (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.m
r247 r250 253 253 254 254 setenv("SRC_ARCHIVE", [archivePath fileSystemRepresentation], 1); 255 setenv(" $DST_COMPONENT", [finalPath fileSystemRepresentation], 1);255 setenv("DST_COMPONENT", [finalPath fileSystemRepresentation], 1); 256 256 setenv("TMP_PATH", [[finalPath stringByAppendingPathExtension:@"old"] fileSystemRepresentation], 1); 257 257 setenv("DST_PATH", [destination fileSystemRepresentation], 1); … … 282 282 char *buf = NULL; 283 283 asprintf(&buf, 284 "rm -rf \"$COMP_PATH\" &&");284 "rm -rf \"$COMP_PATH\""); 285 285 if(!buf) 286 286 return FALSE; … … 407 407 408 408 int tag = 0; 409 BOOL result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:[self quickTimeComponentDir] destination:@"" files:[NSArray arrayWithObject:@"Perian.component"] tag:&tag]; 409 BOOL result = NO; 410 if(auth != nil) 411 [self _authenticatedRemove:[[self quickTimeComponentDir] stringByAppendingPathComponent:@"Perian.component"] authorization:auth]; 412 else 413 result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:[self quickTimeComponentDir] destination:@"" files:[NSArray arrayWithObject:@"Perian.component"] tag:&tag]; 410 414 411 415 NSEnumerator *componentEnum = [myComponentsInfo objectEnumerator]; … … 427 431 break; 428 432 } 429 result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:directory destination:@"" files:[myComponent objectForKey:ComponentNameKey] tag:&tag]; 433 if(auth != nil) 434 [self _authenticatedRemove:[directory stringByAppendingPathComponent:[myComponent objectForKey:ComponentNameKey]] authorization:auth]; 435 else 436 result = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:directory destination:@"" files:[NSArray arrayWithObject:[myComponent objectForKey:ComponentNameKey]] tag:&tag]; 430 437 } 431 438 if(auth != nil) trunk/Perian.xcodeproj/project.pbxproj
r249 r250 1285 1285 runOnlyForDeploymentPostprocessing = 0; 1286 1286 shellPath = /bin/sh; 1287 shellScript = "cd \"$BUILT_PRODUCTS_DIR\"\n./PerianPanePListGenerator \"${SRCROOT}/PerianPane-Info.plist\" \"${BUILT_PRODUCTS_DIR}\ n\" \"${SRCROOT}/PerianPaneReal-Info.plist\"";1287 shellScript = "cd \"$BUILT_PRODUCTS_DIR\"\n./PerianPanePListGenerator \"${SRCROOT}/PerianPane-Info.plist\" \"${BUILT_PRODUCTS_DIR}\" \"${SRCROOT}/PerianPaneReal-Info.plist\""; 1288 1288 }; 1289 1289 F5CFD3B90B50142100616865 /* ShellScript */ = {
