]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Revert "cve-update-nvd2-native: Tweak to work better with NFS DL_DIR"
authorPeter Marko <peter.marko@siemens.com>
Sat, 1 Mar 2025 12:06:39 +0000 (13:06 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 29 Apr 2025 14:45:33 +0000 (07:45 -0700)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ebc65fdddd7ce51f0f1008baa30d0ae7918ae0bb)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/cve-update-nvd2-native.bb

index 9808120cab7686ff3388af77d0ad8533b46a14b2..d50d9a2ceafc0b2a79127bb3a238fd5627b97656 100644 (file)
@@ -85,8 +85,6 @@ python do_fetch() {
     if update_db_file(db_tmp_file, d, database_time) == True:
         # Update downloaded correctly, can swap files
         shutil.move(db_tmp_file, db_file)
-        # Need to 'touch' the file to ensure NFS sees the data
-        os.utime(db_file)
     else:
         # Update failed, do not modify the database
         bb.warn("CVE database update failed")