]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "cve-update-db-native: show IP on failure"
authorRoss Burton <ross.burton@arm.com>
Fri, 27 Jan 2023 13:40:55 +0000 (13:40 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Jan 2023 10:50:44 +0000 (10:50 +0000)
The bug this was intended to find has been resolved, so we don't need
this extra noise in the logs.

This reverts commit bd1edfa3d5b1c24cd1192620f7085ee1df03e1af.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/cve-update-db-native.bb

index e042e67b09af733d7ebd68b49814d95427668bd0..079f062f79b2fe3f932338660a61f2e059908b8e 100644 (file)
@@ -130,10 +130,7 @@ def update_db_file(db_tmp_file, d):
                 response = urllib.request.urlopen(meta_url, timeout=cve_socket_timeout)
             except urllib.error.URLError as e:
                 cve_f.write('Warning: CVE db update error, Unable to fetch CVE data.\n\n')
-                bb.warn("Failed to fetch CVE data (%s)" % e)
-                import socket
-                result = socket.getaddrinfo("nvd.nist.gov", 443, proto=socket.IPPROTO_TCP)
-                bb.warn("Host IPs are %s" % (", ".join(t[4][0] for t in result)))
+                bb.warn("Failed to fetch CVE data (%s)" % e.reason)
                 return False
 
             if response: