]> git.saurik.com Git - cydia.git/commitdiff
Slightly safer ordering of _saveConfig / cydia.list.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 14:01:51 +0000 (06:01 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 14:01:55 +0000 (06:01 -0800)
MobileCydia.mm

index 73d84483c44f61c4ad6f0fb715f98abfe3b6d41a..607cfcb9c6f513785c21c6e8314a8d406efc42b1 100644 (file)
@@ -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_)