config: Avoid shadowing local variable with loop temporary

Signed-off-by: William Douglas <william.douglas@intel.com>
This commit is contained in:
William Douglas
2021-10-19 11:56:27 -07:00
committed by Arjan van de Ven
parent 311ba1f822
commit db39793d81
+3 -3
View File
@@ -879,9 +879,9 @@ class Config(object):
# Parse the version-specific patch lists
update_security_sensitive = False
for version in self.versions:
self.verpatches[version] = self.read_conf_file(os.path.join(self.download_path, '.'.join(['series', version])))
if any(p.lower().startswith('cve-') for p in self.verpatches[version]):
for versionp in self.versions:
self.verpatches[versionp] = self.read_conf_file(os.path.join(self.download_path, '.'.join(['series', versionp])))
if any(p.lower().startswith('cve-') for p in self.verpatches[versionp]):
update_security_sensitive = True
if any(p.lower().startswith('cve-') for p in self.patches):