summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-14 06:11:38 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-14 06:11:49 -0700
commitc8ce71c7819b7bba52e8e6b2f1ffcb18cb23cf0e (patch)
tree1c1b912a9b4b1f54c65249df4618110069afc68b
parente7817a6bedf5c3821457925be950e62caa202d4e (diff)
Filter stupid GPG warnings that do not enhance security.
-rw-r--r--MobileCydia.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 8ec1244..3e13cbc 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3451,6 +3451,10 @@ class CydiaLogCleaner :
lprintf("%c:[%s]\n", warning ? 'W' : 'E', error.c_str());
+ static Pcre no_pubkey("^GPG error:.* NO_PUBKEY .*$");
+ if (warning && no_pubkey(error.c_str()))
+ continue;
+
[delegate_ addProgressEventOnMainThread:[CydiaProgressEvent eventWithMessage:[NSString stringWithUTF8String:error.c_str()] ofType:(warning ? kCydiaProgressEventTypeWarning : kCydiaProgressEventTypeError)] forTask:title];
}