X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/6c0691af14a7ae3c86339dd0cb95beca980d93d4..fec09a82a82c55ef19723940d96cb15e15fc4ed2:/postinst.mm?ds=sidebyside diff --git a/postinst.mm b/postinst.mm index e69f9c2f..a204b81b 100644 --- a/postinst.mm +++ b/postinst.mm @@ -207,6 +207,15 @@ int main(int argc, const char *argv[]) { #define Cytore_ "/metadata.cb0" + #define CYDIA_LIST "/etc/apt/sources.list.d/cydia.list" + unlink(CYDIA_LIST); + [[NSString stringWithFormat:@ + "deb http://apt.saurik.com/ ios/%.2f main\n" + "deb http://apt.thebigboss.org/repofiles/cydia/ stable main\n" + "deb http://cydia.zodttd.com/repo/cydia/ stable main\n" + "deb http://apt.modmyi.com/ stable main\n" + , kCFCoreFoundationVersionNumber] writeToFile:@ CYDIA_LIST atomically:YES]; + if (access(NewLibrary_ Cytore_, F_OK) != 0 && errno == ENOENT) { if (access(NewCache_ Cytore_, F_OK) == 0) system("mv -f " NewCache_ Cytore_ " " NewLibrary_);