From: Jay Freeman (saurik) Date: Sat, 19 Feb 2011 14:01:51 +0000 (-0800) Subject: Slightly safer ordering of _saveConfig / cydia.list. X-Git-Tag: v1.1.0%b1~296 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/1fe5dc43ed92bdc8c68c20f921d3ba1c6b6d2fef?ds=inline Slightly safer ordering of _saveConfig / cydia.list. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 73d84483..607cfcb9 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_)