]> git.saurik.com Git - cydia.git/commitdiff
Filter stupid GPG warnings that do not enhance security.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 13:11:38 +0000 (06:11 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 14 Mar 2011 13:11:49 +0000 (06:11 -0700)
MobileCydia.mm

index 8ec1244ee3612c7faabb3d9c416fdfc9b5a98249..3e13cbcc07eac22a5978aa87a1b1d69d2d50b5d8 100644 (file)
@@ -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];
     }