summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-10-16 07:56:51 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:51 +0000
commit3622197e1f57bdd27a9abaa999ecac3d339731ec (patch)
treea7423a5e2d23a9bad61a5fdf161e9ee6d3eb5d54 /Cydia.mm
parent2083b8667360b309dc8fd9c7de2813bd07ac43f2 (diff)
Fixed some minor reported bugs.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm13
1 files changed, 7 insertions, 6 deletions
diff --git a/Cydia.mm b/Cydia.mm
index cbf5a35..7ec9c25 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -2326,7 +2326,6 @@ static NSArray *Finishes_;
for (pkgCache::PkgIterator iterator = cache_->PkgBegin(); !iterator.end(); ++iterator)
if (Package *package = [Package packageWithIterator:iterator database:self])
[packages_ addObject:package];
- NSLog(@"profile_: %llu", profile_);
_trace();
[packages_ sortUsingSelector:@selector(compareByName:)];
_trace();
@@ -3136,9 +3135,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"];
if (NSMutableDictionary *info = [[NSMutableDictionary alloc] initWithContentsOfFile:plist]) {
[info autorelease];
- [info setObject:path forKey:@"Path"];
- [info setObject:@"System" forKey:@"ApplicationType"];
- [system addInfoDictionary:info];
+ if ([info objectForKey:@"CFBundleIdentifier"] != nil) {
+ [info setObject:path forKey:@"Path"];
+ [info setObject:@"System" forKey:@"ApplicationType"];
+ [system addInfoDictionary:info];
+ }
}
}
} else goto error;
@@ -6908,7 +6909,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
CGSize keysize = [UIKeyboard defaultSize];
CGRect keyrect = {{0, [overlay_ bounds].size.height}, keysize};
keyboard_ = [[UIKeyboard alloc] initWithFrame:keyrect];
- [[UIKeyboardImpl sharedInstance] setSoundsEnabled:(Sounds_Keyboard_ ? YES : NO)];
+ //[[UIKeyboardImpl sharedInstance] setSoundsEnabled:(Sounds_Keyboard_ ? YES : NO)];
[overlay_ addSubview:keyboard_];
if (!bootstrap_)
@@ -7319,7 +7320,7 @@ int main(int argc, char *argv[]) { _pooled
setuid(0);
setgid(0);
-#if 1 /* XXX: this costs 1.4s of startup performance */
+#if 0 /* XXX: this costs 1.4s of startup performance */
if (unlink("/var/cache/apt/pkgcache.bin") == -1)
_assert(errno == ENOENT);
if (unlink("/var/cache/apt/srcpkgcache.bin") == -1)