From 1fe5dc43ed92bdc8c68c20f921d3ba1c6b6d2fef Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 19 Feb 2011 06:01:51 -0800 Subject: Slightly safer ordering of _saveConfig / cydia.list. --- MobileCydia.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MobileCydia.mm b/MobileCydia.mm index 73d8448..607cfcb 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -8910,6 +8910,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) syncData { + [self _saveConfig]; + FILE *file(fopen("/etc/apt/sources.list.d/cydia.list", "w")); _assert(file != NULL); @@ -8925,8 +8927,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { fclose(file); - [self _saveConfig]; - ProgressController *progress = [[[ProgressController alloc] initWithDatabase:database_ delegate:self] autorelease]; CYNavigationController *navigation = [[[CYNavigationController alloc] initWithRootViewController:progress] autorelease]; if (IsWildcat_) -- cgit v1.2.3