]> git.saurik.com Git - cydia.git/commitdiff
APT incorrectly overlaps http and https origin :/.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 27 Jan 2017 09:17:44 +0000 (01:17 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 27 Jan 2017 09:17:44 +0000 (01:17 -0800)
Sources.mm

index 790dd1bff51882ebb2e1fa3054d4edccb1bd07b9..f89ed1890f8d36071c6b05445e3693266ce750a1 100644 (file)
@@ -37,6 +37,9 @@ void CydiaWriteSources() {
     fprintf(file, "deb http://apt.saurik.com/ ios/%.2f main\n", kCFCoreFoundationVersionNumber);
 
     for (NSString *key in [Sources_ allKeys]) {
+        if ([key hasPrefix:@"deb:http:"] && [Sources_ objectForKey:[NSString stringWithFormat:@"deb:https:%s", [key UTF8String] + 9]])
+            continue;
+
         NSDictionary *source([Sources_ objectForKey:key]);
 
         NSArray *sections([source objectForKey:@"Sections"] ?: [NSArray array]);