diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 06:01:51 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 06:01:55 -0800 |
commit | 1fe5dc43ed92bdc8c68c20f921d3ba1c6b6d2fef (patch) | |
tree | 07b6a2dc0ee8d413a0180556319a3ef64971075c | |
parent | b088c0cd13cb6e102a96f02cb176537883421d93 (diff) |
Slightly safer ordering of _saveConfig / cydia.list.
-rw-r--r-- | MobileCydia.mm | 4 |
1 files 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_) |