From 53ca7fddbef9d38f4d8f7d2c39955e625543025b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 21 Feb 2011 06:14:20 -0800 Subject: Always use popErrorWithTitle: for list.ReadMainList(). --- MobileCydia.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index c29e9ff..1cd2894 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -3745,12 +3745,11 @@ static NSString *Warning_; } - (void) updateWithStatus:(Status &)status { - _transient NSObject *delegate(status.getDelegate()); NSString *title(UCLocalize("REFRESHING_DATA")); pkgSourceList list; - if (!list.ReadMainList()) - [delegate _setProgressError:@"Unable to read source list." withTitle:title]; + if ([self popErrorWithTitle:title forOperation:list.ReadMainList()]) + return; FileFd lock; lock.Fd(GetLock(_config->FindDir("Dir::State::Lists") + "lock")); @@ -8293,7 +8292,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { [super reloadData]; pkgSourceList list; - if (!list.ReadMainList()) + if ([database_ popErrorWithTitle:UCLocalize("SOURCES") forOperation:list.ReadMainList()]) return; [sources_ removeAllObjects]; -- cgit v1.2.3