Better header section in the unified hosts file.
authorSteven Black <redacted>
Thu, 24 Mar 2016 14:29:51 +0000 (10:29 -0400)
committerSteven Black <redacted>
Thu, 24 Mar 2016 14:29:51 +0000 (10:29 -0400)
updateHostsFile.py

index b03daa5a02afa07f491e48b663e77d7a7e8714d4..d391b970d48c7d7350017e0a37fd156a15fa7574 100644 (file)
@@ -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')
git clone https://git.99rst.org/PROJECT