diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-12 04:27:47 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-12 04:27:47 -0700 |
commit | 57df20acf4367919c79ebf4944eef307979e7327 (patch) | |
tree | 32d893826acd874c22c2f209f2cedf1cb9449a9a | |
parent | 9fe109d1a81b281765de84f150862db88c65dcd0 (diff) |
Automatically repair a missing Cydia cache folder.
-rw-r--r-- | MobileCydia.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 247d3a8..0b40a66 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]); |