summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-01-27 01:17:44 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-01-27 01:17:44 -0800
commit34903f15854bf6a58663da0cc991ac3aa45bba2b (patch)
treebf6e38ee9dc1af1305f6aa271a6e6da45559e209
parentbcf098f9b52d0ebda7477466a2d21ebc2a9fdc88 (diff)
APT incorrectly overlaps http and https origin :/.
-rw-r--r--Sources.mm3
1 files changed, 3 insertions, 0 deletions
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]);