From c8ce71c7819b7bba52e8e6b2f1ffcb18cb23cf0e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 14 Mar 2011 06:11:38 -0700 Subject: [PATCH] Filter stupid GPG warnings that do not enhance security. --- MobileCydia.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MobileCydia.mm b/MobileCydia.mm index 8ec1244e..3e13cbcc 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]; } -- 2.45.2