From 57cc2170d119bec4eefdcfaabeb47839e44f5856 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 10 Jul 2015 04:20:22 -0700 Subject: Write a default cydia.list for apt to fix AppleTV. --- postinst.mm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'postinst.mm') 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_); -- cgit v1.2.3