summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2014-10-27 03:02:29 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2014-10-27 03:18:14 -0700
commit00407aa95bc3db374611046f1e7414497345df2b (patch)
treeae6cf8a628d8928f0d69581a8912c5fdcf8839fc
parent8dbbd7d6bc2796cb56b41ae3dade5d85d03ec49b (diff)
Delete the now-obsolete cache folder in /var/root.
-rw-r--r--postinst.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/postinst.mm b/postinst.mm
index bbef4c8..d96d624 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())