- (void) complete {
[delegate_ addTrivialSource:href_];
+ href_ = nil;
+
[delegate_ syncData];
}
trivial_bz2_ == nil &&
trivial_gz_ == nil
) {
+ NSString *warning(cydia_ ? [self yieldToSelector:@selector(getWarning)] : nil);
+
[delegate_ releaseNetworkActivityIndicator];
[delegate_ removeProgressHUD:hud_];
hud_ = nil;
if (cydia_) {
- if (NSString *warning = [self yieldToSelector:@selector(getWarning)]) {
+ if (warning != nil) {
UIAlertView *alert = [[[UIAlertView alloc]
initWithTitle:UCLocalize("SOURCE_WARNING")
message:warning
[alert setContext:@"urlerror"];
[alert show];
+
+ href_ = nil;
} else {
UIAlertView *alert = [[[UIAlertView alloc]
initWithTitle:UCLocalize("NOT_REPOSITORY")
[alert setContext:@"trivial"];
[alert show];
+
+ href_ = nil;
}
- href_ = nil;
error_ = nil;
}
}
else if ([context isEqualToString:@"warning"]) {
switch (button) {
case 1:
- [self complete];
+ [self performSelector:@selector(complete) withObject:nil afterDelay:0];
break;
case 0:
_nodefault
}
- href_ = nil;
-
[alert dismissWithClickedButtonIndex:-1 animated:YES];
}
}