diff options
-rw-r--r-- | meta/recipes-core/meta/cve-update-db-native.bb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb index 50052f8532..a6144979f0 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb | |||
@@ -42,10 +42,10 @@ python do_fetch() { | |||
42 | if os.path.exists(db_file): | 42 | if os.path.exists(db_file): |
43 | os.remove(db_file) | 43 | os.remove(db_file) |
44 | 44 | ||
45 | # Don't refresh the database more than once an hour | 45 | # The NVD database changes once a day, so no need to update more frequently |
46 | try: | 46 | try: |
47 | import time | 47 | import time |
48 | if time.time() - os.path.getmtime(db_file) < (60*60): | 48 | if time.time() - os.path.getmtime(db_file) < (24*60*60): |
49 | return | 49 | return |
50 | except OSError: | 50 | except OSError: |
51 | pass | 51 | pass |