Skip to content

Commit

Permalink
Revert "cve-update-nvd2-native: Tweak to work better with NFS DL_DIR"
Browse files Browse the repository at this point in the history
This reverts commit 7adaec4.

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: ebc65fdddd7ce51f0f1008baa30d0ae7918ae0bb)

Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
petermarko authored and rpurdie committed Mar 1, 2025
1 parent dfe34c2 commit 61b8891
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions meta/recipes-core/meta/cve-update-nvd2-native.bb
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,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")
Expand Down

0 comments on commit 61b8891

Please sign in to comment.