From 6dc8c77b6488242a535c859e5099c6ce91e1262e Mon Sep 17 00:00:00 2001 From: Steven Black Date: Mon, 28 Mar 2016 23:04:34 -0400 Subject: [PATCH] Tweak for updatehostsfile.py which wasn't updating extension sources. --- updateHostsFile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index 4019199fa..dbb5c1fab 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -118,6 +118,8 @@ def main(): settings.update(options) settings["sources"] = listdir_nohidden(settings["datapath"]) + settings["extensionsources"] = listdir_nohidden(settings["extensionspath"]) + # All our extensions folders... settings["extensions"] = [os.path.basename(item) for item in listdir_nohidden(settings["extensionspath"])] @@ -222,7 +224,7 @@ def matchesExclusions(strippedRule): # Update Logic def updateAllSources(): - allsources = list(set(settings["sources"]) | set(settings["extensions"])) + allsources = list(set(settings["sources"]) | set(settings["extensionsources"])) for source in allsources: if os.path.isdir(source): updateURLs = getUpdateURLsFromFile(source)