diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-10 04:20:22 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-10 04:30:48 -0700 |
commit | 57cc2170d119bec4eefdcfaabeb47839e44f5856 (patch) | |
tree | 09b4641995ded81e07e70272bb371d1f6bdc7bce /postinst.mm | |
parent | d93e3f2231d506192b7528ab0cab1adc4069f356 (diff) |
Write a default cydia.list for apt to fix AppleTV.v1.1.21
Diffstat (limited to 'postinst.mm')
-rw-r--r-- | postinst.mm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/postinst.mm b/postinst.mm index e69f9c2..a204b81 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_); |