]> git.saurik.com Git - cydia.git/commitdiff
Use a firmware-specific apt.saurik.com.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 07:09:47 +0000 (23:09 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 07:09:47 +0000 (23:09 -0800)
MobileCydia.mm

index 523a8ad930a4e4f48586ccf2a5975ee7c3693d3c..158d2ce94b9d3c6357f9349883298c7870e7fb0c 100644 (file)
@@ -749,8 +749,13 @@ static void WriteSources() {
     FILE *file(fopen("/etc/apt/sources.list.d/cydia.list", "w"));
     _assert(file != NULL);
 
-    fprintf(file, "deb http://%s/ tangelo-3.7 main\n",
-        [CydiaSource_ UTF8String]
+    NSString *distribution(@"ios");
+    if (Firmware_ != nil)
+        distribution = [distribution stringByAppendingString:[NSString stringWithFormat:@"-%@", Firmware_]];
+
+    fprintf(file, "deb http://%s/ %s main\n",
+        [CydiaSource_ UTF8String],
+        [distribution UTF8String]
     );
 
     for (NSString *key in [Sources_ allKeys]) {