diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-03-01 13:06:39 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-05-02 08:20:12 -0700 |
| commit | 9c63e0c9646c61663e8cfc6b4c75865cd0cd3b34 (patch) | |
| tree | ef68fc2fec5d7bc9e5b6bec895ed2114853c2919 | |
| parent | 18206fc2dba1684bc96efecf95c65450f9577203 (diff) | |
| download | poky-9c63e0c9646c61663e8cfc6b4c75865cd0cd3b34.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: 00dd4901e364d16d96cfab864823a9cfdd336eeb)
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.bb | 2 |
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 74c780493d..945bd1d927 100644 --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb | |||
| @@ -90,8 +90,6 @@ python do_fetch() { | |||
| 90 | if update_db_file(db_tmp_file, d, database_time) == True: | 90 | if update_db_file(db_tmp_file, d, database_time) == True: |
| 91 | # Update downloaded correctly, can swap files | 91 | # Update downloaded correctly, can swap files |
| 92 | shutil.move(db_tmp_file, db_file) | 92 | shutil.move(db_tmp_file, db_file) |
| 93 | # Need to 'touch' the file to ensure NFS sees the data | ||
| 94 | os.utime(db_file) | ||
| 95 | else: | 93 | else: |
| 96 | # Update failed, do not modify the database | 94 | # Update failed, do not modify the database |
| 97 | bb.warn("CVE database update failed") | 95 | bb.warn("CVE database update failed") |
