From da2517af74556c1e4c4d17fba64c7fa6b208ca2c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 10 Mar 2011 23:09:47 -0800 Subject: [PATCH] Use a firmware-specific apt.saurik.com. --- MobileCydia.mm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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]) { -- 2.45.2