diff options
Diffstat (limited to 'meta/recipes-core')
-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 e5822cee58..af39480dda 100644 --- a/meta/recipes-core/meta/cve-update-db-native.bb +++ b/meta/recipes-core/meta/cve-update-db-native.bb | |||
@@ -43,10 +43,10 @@ python do_fetch() { | |||
43 | if os.path.exists(db_file): | 43 | if os.path.exists(db_file): |
44 | os.remove(db_file) | 44 | os.remove(db_file) |
45 | 45 | ||
46 | # Don't refresh the database more than once an hour | 46 | # The NVD database changes once a day, so no need to update more frequently |
47 | try: | 47 | try: |
48 | import time | 48 | import time |
49 | if time.time() - os.path.getmtime(db_file) < (60*60): | 49 | if time.time() - os.path.getmtime(db_file) < (24*60*60): |
50 | bb.debug(2, "Recently updated, skipping") | 50 | bb.debug(2, "Recently updated, skipping") |
51 | return | 51 | return |
52 | except OSError: | 52 | except OSError: |