Changeset 607
- Timestamp:
- 06/24/07 21:14:30 (1 year ago)
- Files:
-
- trunk/CPFPerianPrefPaneController.h (modified) (1 diff)
- trunk/CPFPerianPrefPaneController.m (modified) (3 diffs)
- trunk/Plists/ComponentInfo.plist (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/CPFPerianPrefPaneController.h
r605 r607 8 8 #define ObsoletesKey @"obsoletes" 9 9 #define HumanReadableNameKey @"HumanReadableName" 10 #define PERIAN_NO_BUNDLE_ID_FORMAT @"org.perian.No.Bundle.ID.%@" 10 11 11 12 #define ComponentInfoDictionaryKey @"Components" trunk/CPFPerianPrefPaneController.m
r605 r607 227 227 else 228 228 userInstalled = YES; 229 229 230 #warning TODO(durin42) Should filter out components that aren't installed from this list. 230 231 componentReplacementInfo = [[NSArray alloc] initWithContentsOfFile:[[[self bundle] resourcePath] stringByAppendingPathComponent:ComponentInfoPlist]]; 231 232 } … … 736 737 [componentInfo setObject:@"Unknown" forKey:@"version"]; 737 738 [componentInfo setObject:(user ? @"User" : @"System") forKey:@"installType"]; 738 [componentInfo setObject:@"NO BUNDLE" forKey:@"status"]; 739 [componentInfo setObject:@"NO BUNDLE" forKey:@"bundleID"]; 739 NSString *bundleIdent = [NSString stringWithFormat:PERIAN_NO_BUNDLE_ID_FORMAT,compName]; 740 [componentInfo setObject:[self checkComponentStatusByBundleIdentifier:bundleIdent] forKey:@"status"]; 741 [componentInfo setObject:bundleIdent forKey:@"bundleID"]; 740 742 } 741 743 return [componentInfo autorelease]; … … 767 769 NSEnumerator *stringsEnum = [[infoDict objectForKey:ObsoletesKey] objectEnumerator]; 768 770 NSString *obsoletedID; 769 while ((obsoletedID = [stringsEnum nextObject])) {771 while ((obsoletedID = [stringsEnum nextObject])) 770 772 if ([obsoletedID isEqualToString:bundleID]) 771 773 status = [NSString stringWithFormat:@"Obsoleted by %@",[infoDict objectForKey:HumanReadableNameKey]]; 772 }773 774 } 774 775 return status; trunk/Plists/ComponentInfo.plist
r605 r607 10 10 <key>obsoletes</key> 11 11 <array> 12 <string>com.theoryllc.FLVComponentBundle</string> 13 <string>com.DivXInc.DivXDecoder</string> 14 <string>com.insaneness.XVIDDelegate</string> 15 <string>org.perian.No.Bundle.ID.OpenDivX</string> 12 16 <string>net.aldorande.component.FFusion</string> 13 17 <string>com.jamby.ffmpeg</string>
