]> git.saurik.com Git - cydia.git/blobdiff - postinst.mm
Trust in the mobile permissions on Cydia's caches.
[cydia.git] / postinst.mm
index 11d70dc953237925130beed95e0af6ba9d7b6ba7..45a7da37d7f38e3a259346784c775637095a4be4 100644 (file)
@@ -229,11 +229,9 @@ int main(int argc, const char *argv[]) {
 
     #define NewCache_ "/var/mobile/Library/Caches/com.saurik.Cydia"
     system("cd /; su -c 'mkdir -p " NewCache_ "' mobile");
-
-    if (access(NewCache_ "/lists", F_OK) != 0 && errno == ENOENT) {
+    if (access(NewCache_ "/lists", F_OK) != 0 && errno == ENOENT)
         system("cp -at " NewCache_ " /var/lib/apt/lists");
-        system("chown -R 501.501 " NewCache_ "/lists");
-    }
+    system("chown -R 501.501 " NewCache_);
 
     #define OldLibrary_ "/var/lib/cydia"