From: Jay Freeman (saurik) Date: Mon, 22 Jun 2009 13:35:28 +0000 (+0000) Subject: Fixed queuing and the iphone-gcc crash. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/e4765783810c7c63e86074d0aa471d16d864359c?hp=57ff7dded78d681927bc74d8bc09f984babf61ea Fixed queuing and the iphone-gcc crash. --- diff --git a/Cydia.app/confirm.js b/Cydia.app/confirm.js index bd78c2e5..ba2e2e5d 100644 --- a/Cydia.app/confirm.js +++ b/Cydia.app/confirm.js @@ -43,9 +43,12 @@ $(function () { var type = entry[0]; if (type == "PreDepends") type = "Depends"; + var version = entry[1]; + if (entry.length >= 4) + version += " " + entry[3]; $("#i" + i).append("
" + "" + - "" + + "" + "
"); } } diff --git a/Cydia.mm b/Cydia.mm index 56eb0979..88c7481f 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -418,7 +418,7 @@ static const CFStringCompareFlags LaxCompareFlags_ = kCFCompareCaseInsensitive | #define IgnoreInstall (0 && !ForRelease) #define RecycleWebViews 0 #define RecyclePackageViews 1 -#define AlwaysReload (1 && !ForRelease) +#define AlwaysReload (0 && !ForRelease) #if !TraceLogging #undef _trace @@ -2458,12 +2458,9 @@ struct PackageNameOrdering : - (Address *) author { if (author$_ == nil) { -_trace(); if (author_.empty()) return nil; -_trace(); author$_ = [[Address addressWithString:author_] retain]; -_trace(); } return author$_; } @@ -3115,8 +3112,10 @@ static NSArray *Finishes_; [entry addObject:failure]; [failure addObject:[NSString stringWithUTF8String:start.DepType()]]; - Package *package([self packageWithName:[NSString stringWithUTF8String:start.TargetPkg().Name()]]); - [failure addObject:[package name]]; + NSString *name([NSString stringWithUTF8String:start.TargetPkg().Name()]); + if (Package *package = [self packageWithName:name]) + name = [package name]; + [failure addObject:name]; pkgCache::PkgIterator target(start.TargetPkg()); if (target->ProvidesList != 0) @@ -3322,6 +3321,8 @@ static NSArray *Finishes_; } - (void) prepare { + fetcher_->Shutdown(); + pkgRecords records(cache_); lock_ = new FileFd();