diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 05:20:22 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-19 05:20:22 -0800 |
commit | 934605552e132832b8136b0af7c23a388f573cce (patch) | |
tree | c686766b399a650630dbc83819be3e85bc34ea60 /MobileCydia.mm | |
parent | 925e28a65f910a56863dc3eac5989e0cf0e8b8fd (diff) |
Factor source addition out to -[Cydia addTrivialSource:].
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 16367e4..ddd82f5 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -1151,6 +1151,7 @@ bool isSectionVisible(NSString *section) { - (void) loadData; - (void) updateData; - (void) syncData; +- (void) addTrivialSource:(NSString *)href; - (void) showSettings; - (UIProgressHUD *) addProgressHUD; - (void) removeProgressHUD:(UIProgressHUD *)hud; @@ -8074,12 +8075,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } - (void) complete { - [Sources_ setObject:[NSDictionary dictionaryWithObjectsAndKeys: - @"deb", @"Type", - href_, @"URI", - @"./", @"Distribution", - nil] forKey:[NSString stringWithFormat:@"deb:%@:./", href_]]; - + [delegate_ addTrivialSource:href_]; [delegate_ syncData]; } @@ -8933,6 +8929,14 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { ]; } +- (void) addTrivialSource:(NSString *)href { + [Sources_ setObject:[NSDictionary dictionaryWithObjectsAndKeys: + @"deb", @"Type", + href, @"URI", + @"./", @"Distribution", + nil] forKey:[NSString stringWithFormat:@"deb:%@:./", href]]; +} + - (void) reloadDataWithInvocation:(NSInvocation *)invocation { @synchronized (self) { [self _reloadDataWithInvocation:invocation]; |