From a0a884c2de8cb6e621cb953b4a7deffa4cf38784 Mon Sep 17 00:00:00 2001 From: Steven Black Date: Thu, 24 Mar 2016 10:29:51 -0400 Subject: [PATCH] Better header section in the unified hosts file. --- updateHostsFile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index b03daa5a0..d391b970d 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -382,8 +382,10 @@ def writeOpeningHeader(finalFile): writeData(finalFile, '# This hosts file is a merged collection of hosts from reputable sources,\n') writeData(finalFile, '# with a dash of crowd sourcing via Github\n#\n') writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n') + if settings["extensions"]: + writeData(finalFile, '# Extensions added to this file: ' + ", ".join(settings["extensions"]) + '\n') writeData(finalFile, '# Number of unique domains: ' + "{:,}".format(settings["numberofrules"]) + '\n#\n') - writeData(finalFile, '# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts\n') + writeData(finalFile, '# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/'+ os.path.join(settings["outputsubfolder"],"") + 'hosts\n') writeData(finalFile, '# Project home page: https://github.com/StevenBlack/hosts\n#\n') writeData(finalFile, '# ===============================================================\n') writeData(finalFile, '\n')