From 34903f15854bf6a58663da0cc991ac3aa45bba2b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 27 Jan 2017 01:17:44 -0800 Subject: APT incorrectly overlaps http and https origin :/. --- Sources.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources.mm b/Sources.mm index 790dd1b..f89ed18 100644 --- a/Sources.mm +++ b/Sources.mm @@ -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]); -- cgit v1.2.3