diff options
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 523a8ad..158d2ce 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]) { |