diff options
| author | Ross Burton <ross.burton@arm.com> | 2023-01-27 13:40:55 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-29 19:24:22 +0000 |
| commit | fa4cd1a7a20615c228a5556e135ddf791d28b8a0 (patch) | |
| tree | 6f7301bb004e02df6e2b8d8b70b11c0ea0c7d75b | |
| parent | 8c5faadf6cb9f565c528bc79a297b27caf2f9c50 (diff) | |
| download | poky-fa4cd1a7a20615c228a5556e135ddf791d28b8a0.tar.gz | |
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.
(From OE-Core rev: 54ae53ef3e4ad51fc9a01155588b62f29c994742)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/meta/cve-update-db-native.bb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index e042e67b09..079f062f79 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): | |||
| 130 | response = urllib.request.urlopen(meta_url, timeout=cve_socket_timeout) | 130 | response = urllib.request.urlopen(meta_url, timeout=cve_socket_timeout) |
| 131 | except urllib.error.URLError as e: | 131 | except urllib.error.URLError as e: |
| 132 | cve_f.write('Warning: CVE db update error, Unable to fetch CVE data.\n\n') | 132 | cve_f.write('Warning: CVE db update error, Unable to fetch CVE data.\n\n') |
| 133 | bb.warn("Failed to fetch CVE data (%s)" % e) | 133 | bb.warn("Failed to fetch CVE data (%s)" % e.reason) |
| 134 | import socket | ||
| 135 | result = socket.getaddrinfo("nvd.nist.gov", 443, proto=socket.IPPROTO_TCP) | ||
| 136 | bb.warn("Host IPs are %s" % (", ".join(t[4][0] for t in result))) | ||
| 137 | return False | 134 | return False |
| 138 | 135 | ||
| 139 | if response: | 136 | if response: |
