summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:45:11 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2015-07-02 03:45:11 -0700
commit6c0691af14a7ae3c86339dd0cb95beca980d93d4 (patch)
treeb4ae7f919044331a91b950d6b2f6595723db0e97
parent55c2a6d58e6e2a159e85a8d2fbf934d575dc5b0e (diff)
Add (temporary?) symlink for APT using cydia.list.
l---------Sources.list/cydia.list1
-rw-r--r--Sources.mm1
-rw-r--r--postinst.mm2
3 files changed, 2 insertions, 2 deletions
diff --git a/Sources.list/cydia.list b/Sources.list/cydia.list
new file mode 120000
index 0000000..2c62ba7
--- /dev/null
+++ b/Sources.list/cydia.list
@@ -0,0 +1 @@
+/var/mobile/Library/Caches/com.saurik.Cydia/sources.list \ No newline at end of file
diff --git a/Sources.mm b/Sources.mm
index 4cc2f9e..372aa1e 100644
--- a/Sources.mm
+++ b/Sources.mm
@@ -31,6 +31,7 @@ extern _H<NSMutableDictionary> Sources_;
extern bool Changed_;
void CydiaWriteSources() {
+ unlink(SOURCES_LIST);
FILE *file(fopen(SOURCES_LIST, "w"));
_assert(file != NULL);
diff --git a/postinst.mm b/postinst.mm
index 35c92b1..e69f9c2 100644
--- a/postinst.mm
+++ b/postinst.mm
@@ -190,8 +190,6 @@ int main(int argc, const char *argv[]) {
}
}
- unlink("/etc/apt/sources.list.d/cydia.list");
-
#define OldCache_ "/var/root/Library/Caches/com.saurik.Cydia"
if (access(OldCache_, F_OK) == 0)
system("rm -rf " OldCache_);