]> git.saurik.com Git - cydia.git/blobdiff - Sources.mm
Move private ivars in CyteKit to @implementations.
[cydia.git] / Sources.mm
index 790dd1bff51882ebb2e1fa3054d4edccb1bd07b9..a156ee2f404e1e73aa09cfeafff15d91f8e6d908 100644 (file)
 **/
 /* }}} */
 
+#include "CyteKit/UCPlatform.h"
+
 #include <Foundation/Foundation.h>
 #include <Menes/ObjectHandle.h>
-#include <CyteKit/UCPlatform.h>
 
 #include <cstdio>
 
@@ -37,6 +38,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]);