summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 23:09:47 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 23:09:47 -0800
commitda2517af74556c1e4c4d17fba64c7fa6b208ca2c (patch)
treed986df69e377a8f7afecddc68713dad4eda7f322 /MobileCydia.mm
parent6ac6e186a06688acccfedb972ad264685e3a4157 (diff)
Use a firmware-specific apt.saurik.com.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm9
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]) {