summaryrefslogtreecommitdiff
path: root/Sources.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-20 16:02:29 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-20 16:02:29 -0700
commite967efd5e9745242298f8792cb7d47dca141bfbf (patch)
tree60915ce2b3ed202cc11e2db3baa5d79dfd2dcbee /Sources.mm
parent2d46d29e56fa4e58003787c67953937099fe249c (diff)
Expose ramifications of kCFCoreFoundationVersionNumber.
Diffstat (limited to 'Sources.mm')
-rw-r--r--Sources.mm7
1 files changed, 1 insertions, 6 deletions
diff --git a/Sources.mm b/Sources.mm
index 6073622..15528b7 100644
--- a/Sources.mm
+++ b/Sources.mm
@@ -44,18 +44,13 @@
#include <cstdio>
extern _H<NSMutableDictionary> Sources_;
-extern _H<NSString> System_;
extern bool Changed_;
void CydiaWriteSources() {
FILE *file(fopen("/etc/apt/sources.list.d/cydia.list", "w"));
_assert(file != NULL);
- NSString *distribution(@"ios");
- if (System_ != nil)
- distribution = [distribution stringByAppendingString:[NSString stringWithFormat:@"/%@", (id) System_]];
-
- fprintf(file, "deb http://apt.saurik.com/ %s main\n", [distribution UTF8String]);
+ fprintf(file, "deb http://apt.saurik.com/ ios/%.2f main\n", kCFCoreFoundationVersionNumber);
for (NSString *key in [Sources_ allKeys]) {
NSDictionary *source([Sources_ objectForKey:key]);