summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())