summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-10 02:41:22 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-10 02:41:22 -0700
commitd93e3f2231d506192b7528ab0cab1adc4069f356 (patch)
treea5917f758b1c71662bd12567c4d59dac3783f1d3
parent8a2d167ab8639560f76cefc7d6fec161cc29fceb (diff)
Consider sources that do not end in / as "broken".
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1615f21..abc1643 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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)