diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-20 16:02:29 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-20 16:02:29 -0700 |
commit | e967efd5e9745242298f8792cb7d47dca141bfbf (patch) | |
tree | 60915ce2b3ed202cc11e2db3baa5d79dfd2dcbee /Sources.mm | |
parent | 2d46d29e56fa4e58003787c67953937099fe249c (diff) |
Expose ramifications of kCFCoreFoundationVersionNumber.
Diffstat (limited to 'Sources.mm')
-rw-r--r-- | Sources.mm | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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]); |