]> git.saurik.com Git - cydia.git/commitdiff
Delete the now-obsolete cache folder in /var/root.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Oct 2014 10:02:29 +0000 (03:02 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 27 Oct 2014 10:18:14 +0000 (03:18 -0700)
postinst.mm

index bbef4c8aeeeb52bb90af221441431a0148970c83..d96d624c0f21ed349aedb8cba193f48b7d1d63b7 100644 (file)
@@ -168,6 +168,10 @@ int main(int argc, const char *argv[]) {
 
     CydiaWriteSources();
 
+    #define OldCache_ "/var/root/Library/Caches/com.saurik.Cydia"
+    if (access(OldCache_, F_OK) == 0)
+        system("rm -rf " OldCache_);
+
     FixPermissions();
 
     if (FixApplications())