diff options
author | Sam Bingner <sam@bingner.com> | 2019-05-03 22:15:31 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-05-03 22:15:31 -1000 |
commit | 5b200555808e798a08210f5697ad7ba80c6fdc70 (patch) | |
tree | 58cee835ede30eea24506103971d1c770e167873 | |
parent | 8eaae323e6dd16f363bab7306328f358951e09c0 (diff) |
Block another repo that is incompatible with elucubratusv1.1.32%b14
-rw-r--r-- | MobileCydia.mm | 3 | ||||
-rw-r--r-- | Sources.mm | 6 | ||||
-rw-r--r-- | postinst.mm | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 5242fbb..21d1a67 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -753,7 +753,8 @@ bool isSectionVisible(NSString *section) { static NSString *VerifySource(NSString *href) { static RegEx href_r("(http(s?)://|file:///)[^# ]*"); - if (!href_r(href) || [href rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound) { + if (!href_r(href) || [href rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound || + [href rangeOfString:@"chimera" options:NSCaseInsensitiveSearch].location != NSNotFound) { [[[[UIAlertView alloc] initWithTitle:[NSString stringWithFormat:Colon_, Error_, UCLocalize("INVALID_URL")] message:UCLocalize("INVALID_URL_EX") @@ -52,7 +52,8 @@ void CydiaWriteSources() { continue; // Don't add Electra sources - if ([[source objectForKey:@"URI"] rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound) + if ([[source objectForKey:@"URI"] rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound || + [[source objectForKey:@"URI"] rangeOfString:@"chimera" options:NSCaseInsensitiveSearch].location != NSNotFound) continue; NSArray *sections([source objectForKey:@"Sections"] ?: [NSArray array]); @@ -75,7 +76,8 @@ void CydiaAddSource(NSDictionary *source) { return; // Don't add Electra sources - if ([[source objectForKey:@"URI"] rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound) + if ([[source objectForKey:@"URI"] rangeOfString:@"electra" options:NSCaseInsensitiveSearch].location != NSNotFound || + [[source objectForKey:@"URI"] rangeOfString:@"chimera" options:NSCaseInsensitiveSearch].location != NSNotFound) return; [Sources_ setObject:source forKey:[NSString stringWithFormat:@"%@:%@:%@", [source objectForKey:@"Type"], [source objectForKey:@"URI"], [source objectForKey:@"Distribution"]]]; diff --git a/postinst.mm b/postinst.mm index 7c5e133..e4206f6 100644 --- a/postinst.mm +++ b/postinst.mm @@ -259,6 +259,7 @@ int main(int argc, const char *argv[]) { #define Cytore_ "/metadata.cb0" unlink("/etc/apt/sources.list.d/electra.list"); + unlink("/etc/apt/sources.list.d/chimera.list"); #define CYDIA_LIST "/etc/apt/sources.list.d/cydia.list" unlink(CYDIA_LIST); if (kCFCoreFoundationVersionNumber >= 1443) { |