From: Ross Burton Date: Fri, 27 Jan 2023 13:40:55 +0000 (+0000) Subject: Revert "cve-update-db-native: show IP on failure" X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~1851 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54ae53ef3e4ad51fc9a01155588b62f29c994742;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git Revert "cve-update-db-native: show IP on failure" 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 Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index e042e67b09a..079f062f79b 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb @@ -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: