summaryrefslogtreecommitdiff
path: root/postinst.mm
diff options
context:
space:
mode:
Diffstat (limited to 'postinst.mm')
-rw-r--r--postinst.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/postinst.mm b/postinst.mm
index d837d7b..c6dd965 100644
--- a/postinst.mm
+++ b/postinst.mm
@@ -180,6 +180,12 @@ int main(int argc, const char *argv[]) {
system("chown -R 501.501 " NewCache_ "/lists");
}
+ if (access(NewCache_ "/metadata.cb0", F_OK) != 0 && errno == ENOENT)
+ if (access("/var/lib/cydia/metadata.cb0", F_OK) == 0) {
+ system("mv /var/lib/cydia/metadata.cb0 " NewCache_);
+ chown(NewCache_ "/metadata.cb0", 501, 501);
+ }
+
FixPermissions();
if (FixApplications())