]> git.saurik.com Git - cydia.git/commitdiff
Consider sources that do not end in / as "broken".
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 10 Jul 2015 09:41:22 +0000 (02:41 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 10 Jul 2015 09:41:22 +0000 (02:41 -0700)
MobileCydia.mm

index 1615f21906f40b6be48dd313efc414faed5e9954..abc1643c8bdaf1b456fea0fe48b986d4acbf7edb 100644 (file)
@@ -10382,7 +10382,7 @@ int main(int argc, char *argv[]) {
 
     _H<NSMutableArray> broken([NSMutableArray array]);
     for (NSString *key in (id) Sources_)
-        if ([key rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"# "]].location != NSNotFound)
+        if ([key rangeOfCharacterFromSet:[NSCharacterSet characterSetWithCharactersInString:@"# "]].location != NSNotFound || ![([[Sources_ objectForKey:key] objectForKey:@"URI"] ?: @"/") hasSuffix:@"/"])
             [broken addObject:key];
     if ([broken count] != 0)
         for (NSString *key in (id) broken)