From: Jay Freeman (saurik) Date: Fri, 11 Mar 2011 07:09:47 +0000 (-0800) Subject: Use a firmware-specific apt.saurik.com. X-Git-Tag: v1.1.0%b6~9 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/da2517af74556c1e4c4d17fba64c7fa6b208ca2c Use a firmware-specific apt.saurik.com. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 523a8ad9..158d2ce9 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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]) {