diff options
author | Sam Bingner <sam@bingner.com> | 2018-09-21 18:28:14 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-09-21 18:28:14 -1000 |
commit | e2739501a16a3ff9019cb1279b064dba644b20e7 (patch) | |
tree | 9a8aa9c65c8e6279d00cdf6e5b5074b6e14a1f01 /MobileCydia.mm | |
parent | 398cdffcaf51b09400c726e7d0a9a07a182122c7 (diff) |
Add xz support
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 1961f5d..3a422e2 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7603,6 +7603,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi NSURLConnection *trivial_bz2_; NSURLConnection *trivial_gz_; + NSURLConnection *trivial_xz_; BOOL cydia_; } @@ -7625,6 +7626,7 @@ static void HomeControllerReachabilityCallback(SCNetworkReachabilityRef reachabi - (void) dealloc { [self _releaseConnection:trivial_gz_]; [self _releaseConnection:trivial_bz2_]; + [self _releaseConnection:trivial_xz_]; [super dealloc]; } @@ -7750,13 +7752,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); @@ -7875,6 +7880,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; @@ -9391,6 +9397,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]; |