diff options
author | Sam Bingner <sam@bingner.com> | 2018-09-21 18:28:14 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-05-27 14:16:11 -1000 |
commit | 1fcde54ba4a653ae9cfaf0df668859c8f13e623e (patch) | |
tree | b4e29d3536845e90f47132973212b2766e57958f | |
parent | d25b4eee0cafb763b8281da78f2476fcab2fa27c (diff) |
Add xz support
-rw-r--r-- | MobileCydia.mm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index dcfb7a3..8b46ab5 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7599,6 +7599,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi NSURLConnection *trivial_bz2_; NSURLConnection *trivial_gz_; + NSURLConnection *trivial_xz_; BOOL cydia_; } @@ -7621,6 +7622,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) dealloc { [self _releaseConnection:trivial_gz_]; [self _releaseConnection:trivial_bz2_]; + [self _releaseConnection:trivial_xz_]; [super dealloc]; } @@ -7746,13 +7748,16 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi field = &trivial_bz2_; else if (connection == trivial_gz_) field = &trivial_gz_; + else if (connection == trivial_xz_) + field = &trivial_xz_; _assert(field != NULL); [connection release]; *field = nil; if ( trivial_bz2_ == nil && - trivial_gz_ == nil + trivial_gz_ == nil && + trivial_xz_ == nil ) { NSString *warning(cydia_ ? [self yieldToSelector:@selector(getWarning)] : nil); @@ -7871,6 +7876,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi trivial_bz2_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages.bz2"] method:@"HEAD"] retain]; trivial_gz_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages.gz"] method:@"HEAD"] retain]; + trivial_xz_ = [[self _requestHRef:[href_ stringByAppendingString:@"Packages.xz"] method:@"HEAD"] retain]; cydia_ = false; @@ -9417,6 +9423,7 @@ int main(int argc, char *argv[]) { CydiaAddSource(@"http://apt.thebigboss.org/repofiles/cydia/", @"stable", [NSMutableArray arrayWithObject:@"main"]); CydiaAddSource(@"http://apt.modmyi.com/", @"stable", [NSMutableArray arrayWithObject:@"main"]); CydiaAddSource(@"http://cydia.zodttd.com/repo/cydia/", @"stable", [NSMutableArray arrayWithObject:@"main"]); + CydiaAddSource(@"https://repo.chariz.io/", @"./"); Version_ = [NSNumber numberWithUnsignedInt:1]; |