summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-03-01 13:06:39 +0100
committerSteve Sakoman <steve@sakoman.com>2025-05-02 08:12:41 -0700
commit0807a8081021703bbea256348accad9263bc496e (patch)
tree652493b497998e3ba8cfc2879c3e6db5a027dfa8
parent7cb984d5ed3d3f18da409df9edda7f8566d8c250 (diff)
downloadpoky-0807a8081021703bbea256348accad9263bc496e.tar.gz
Revert "cve-update-nvd2-native: Tweak to work better with NFS DL_DIR"
This reverts commit 7adaec468d3a61d88c990b1b319b34850bee7e44. It does not seem to fix the issue it was supposed to fix. Additionally it breaks code which decides in full/partial update, because it manipulates timestamp that code is relying on. (From OE-Core rev: 25ba9895b98715adb66a06e50f644aea2e2c9eb6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ebc65fdddd7ce51f0f1008baa30d0ae7918ae0bb) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-core/meta/cve-update-nvd2-native.bb2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 9808120cab..d50d9a2cea 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -85,8 +85,6 @@ python do_fetch() {
85 if update_db_file(db_tmp_file, d, database_time) == True: 85 if update_db_file(db_tmp_file, d, database_time) == True:
86 # Update downloaded correctly, can swap files 86 # Update downloaded correctly, can swap files
87 shutil.move(db_tmp_file, db_file) 87 shutil.move(db_tmp_file, db_file)
88 # Need to 'touch' the file to ensure NFS sees the data
89 os.utime(db_file)
90 else: 88 else:
91 # Update failed, do not modify the database 89 # Update failed, do not modify the database
92 bb.warn("CVE database update failed") 90 bb.warn("CVE database update failed")