Lines Matching +full:start +full:- +full:year
3 # Copyright (C) 2009 by Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
61 remains = filter(lambda x: x[0] not in ["*", "-"] and x[1] not in ["*", "-"] and x[0] != x[1],
85 def download_nvd_year(nvd_path, year): argument
86 metaf = "nvdcve-%s-%s.meta" % (NVD_JSON_VERSION, year)
88 jsonf_gz = "nvdcve-%s-%s.json.gz" % (NVD_JSON_VERSION, year)
93 if os.path.exists(path_jsonf_gz) and os.stat(path_jsonf_gz).st_mtime >= time.time() - 86400:
104 # we need to re-download the database.
128 for year in range(NVD_START_YEAR, datetime.datetime.now().year + 1):
129 filename = CVE.download_nvd_year(nvd_dir, year)
153 # contain sub-nodes, so we need to manage it.
163 # ignore when product is '-', which means N/A
164 if product == '-':
171 if version != '*' and version != '-':
176 # Parse start version, end version and operators