diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-27 03:02:29 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2014-10-27 03:18:14 -0700 |
commit | 00407aa95bc3db374611046f1e7414497345df2b (patch) | |
tree | ae6cf8a628d8928f0d69581a8912c5fdcf8839fc /postinst.mm | |
parent | 8dbbd7d6bc2796cb56b41ae3dade5d85d03ec49b (diff) |
Delete the now-obsolete cache folder in /var/root.
Diffstat (limited to 'postinst.mm')
-rw-r--r-- | postinst.mm | 4 |
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()) |