summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-04-06 11:43:46 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-04-06 11:43:46 +0000
commit5ac04f0f1650731b68a285ed979cfedfa82b9f6c (patch)
tree8508797d7e4acb510cb232f246a1ea2e6fa9e117
parent020dfc54dc819f7c10e8eb43d4ddaaef834dca70 (diff)
Unregister old apps.
-rw-r--r--control2
-rw-r--r--uicache.mm4
2 files changed, 4 insertions, 2 deletions
diff --git a/control b/control
index c8c0a8a..0ae3e66 100644
--- a/control
+++ b/control
@@ -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>
diff --git a/uicache.mm b/uicache.mm
index 904b175..4b477c6 100644
--- a/uicache.mm
+++ b/uicache.mm
@@ -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]);