From: Jay Freeman (saurik) Date: Sun, 12 Jul 2015 11:27:47 +0000 (-0700) Subject: Automatically repair a missing Cydia cache folder. X-Git-Tag: v1.1.23~1 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/57df20acf4367919c79ebf4944eef307979e7327 Automatically repair a missing Cydia cache folder. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 247d3a88..0b40a665 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10308,6 +10308,7 @@ int main(int argc, char *argv[]) { Advanced_ = YES; Cache_ = [[NSString stringWithFormat:@"%@/Library/Caches/com.saurik.Cydia", @"/var/mobile"] retain]; + mkdir([Cache_ UTF8String], 0755); /*Method alloc = class_getClassMethod([NSObject class], @selector(alloc)); alloc_ = alloc->method_imp; @@ -10480,7 +10481,6 @@ int main(int argc, char *argv[]) { _config->Set("Acquire::http::MaxParallel", usermem >= 384 * 1024 * 1024 ? 16 : 3); - mkdir([Cache_ UTF8String], 0755); mkdir([Cache("archives") UTF8String], 0755); mkdir([Cache("archives/partial") UTF8String], 0755); _config->Set("Dir::Cache", [Cache_ UTF8String]);