diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-04-06 11:43:46 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-04-06 11:43:46 +0000 |
commit | 5ac04f0f1650731b68a285ed979cfedfa82b9f6c (patch) | |
tree | 8508797d7e4acb510cb232f246a1ea2e6fa9e117 | |
parent | 020dfc54dc819f7c10e8eb43d4ddaaef834dca70 (diff) |
Unregister old apps.
-rw-r--r-- | control | 2 | ||||
-rw-r--r-- | uicache.mm | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ Section: Utilities Installed-Size: %S Maintainer: Jay Freeman (saurik) <saurik@saurik.com> Architecture: iphoneos-arm -Version: 1.0.3160-1 +Version: 1.0.3162-1 Description: UIKit/GraphicsServices command line access Name: UIKit Tools Author: Jay Freeman (saurik) <saurik@saurik.com> @@ -75,8 +75,10 @@ int main() { [cache writeToFile:path atomically:YES]; if (workspace != nil) - for (NSString *bundle in bundles) + for (NSString *bundle in bundles) { + [workspace unregisterApplication:[NSURL fileURLWithPath:bundle]]; [workspace registerApplication:[NSURL fileURLWithPath:bundle]]; + } if (false) error: fprintf(stderr, "%s\n", error == nil ? strerror(errno) : [[error localizedDescription] UTF8String]); |