diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-01-27 01:17:44 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2017-01-27 01:17:44 -0800 |
commit | 34903f15854bf6a58663da0cc991ac3aa45bba2b (patch) | |
tree | bf6e38ee9dc1af1305f6aa271a6e6da45559e209 /Sources.mm | |
parent | bcf098f9b52d0ebda7477466a2d21ebc2a9fdc88 (diff) |
APT incorrectly overlaps http and https origin :/.
Diffstat (limited to 'Sources.mm')
-rw-r--r-- | Sources.mm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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]); |