diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-06-22 13:35:28 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:57 +0000 |
commit | 744f398ec3592d2e5bd60538aa618f92d315dcc3 (patch) | |
tree | 90fd7e948eb4d86380d52194b44b1be2ec16eded /Cydia.mm | |
parent | 8c1bfa15252a894ab1aeab031e5179d03cbf9829 (diff) |
Fixed queuing and the iphone-gcc crash.
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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(); |