mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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 bd1edfa3d5.
(From OE-Core rev: 54ae53ef3e4ad51fc9a01155588b62f29c994742)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
8c5faadf6c
commit
fa4cd1a7a2
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user