diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-21 06:14:20 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-21 07:03:49 -0800 |
commit | 53ca7fddbef9d38f4d8f7d2c39955e625543025b (patch) | |
tree | ee3ae67c37809c4be0f1e5f6d05c10623f624120 /MobileCydia.mm | |
parent | 0210c2b518d06e3a7118e3b33367658b9b4b1970 (diff) |
Always use popErrorWithTitle: for list.ReadMainList().
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 3 insertions, 4 deletions
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<ProgressDelegate> *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]; |