summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm16
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];