summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-25 09:23:40 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-25 09:36:27 -0700
commit680a3c3c74c8badbc3a73f33f44eceedfe8539ff (patch)
tree4487d8f819d663f6752cf2aac6fff9885e81e4f4
parent471683a3d957aea07f849f4b4d6e4c4a0b9b71a1 (diff)
Revert "Do not double log fetch errors."
This reverts commit b81e530c5de4cf5d32dd6cb9bea62e1a5354fa3e.
-rw-r--r--MobileCydia.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index d85278e..6d8c6f8 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3762,7 +3762,14 @@ class CydiaLogCleaner :
if ((*item)->Status == pkgAcquire::Item::StatIdle)
continue;
+ std::string uri = (*item)->DescURI();
+ std::string error = (*item)->ErrorText;
+
+ lprintf("pAf:%s:%s\n", uri.c_str(), error.c_str());
failed = true;
+
+ CydiaProgressEvent *event([CydiaProgressEvent eventWithMessage:[NSString stringWithUTF8String:error.c_str()] ofType:kCydiaProgressEventTypeError]);
+ [delegate_ addProgressEventOnMainThread:event forTask:title];
}
[delegate_ performSelectorOnMainThread:@selector(releaseNetworkActivityIndicator) withObject:nil waitUntilDone:YES];