From: Jay Freeman (saurik) Date: Fri, 27 Jan 2017 09:17:44 +0000 (-0800) Subject: APT incorrectly overlaps http and https origin :/. X-Git-Tag: v1.1.28%b6~2 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/34903f15854bf6a58663da0cc991ac3aa45bba2b APT incorrectly overlaps http and https origin :/. --- diff --git a/Sources.mm b/Sources.mm index 790dd1bf..f89ed189 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]);