From 00407aa95bc3db374611046f1e7414497345df2b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 27 Oct 2014 03:02:29 -0700 Subject: [PATCH] Delete the now-obsolete cache folder in /var/root. --- postinst.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/postinst.mm b/postinst.mm index bbef4c8a..d96d624c 100644 --- a/postinst.mm +++ b/postinst.mm @@ -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()) -- 2.50.0