Improve amalgaated hosts file heading.
authorSteven Black <redacted>
Sat, 27 Feb 2016 03:55:07 +0000 (22:55 -0500)
committerSteven Black <redacted>
Sat, 27 Feb 2016 03:55:07 +0000 (22:55 -0500)
hosts
updateHostsFile.py

diff --git a/hosts b/hosts
index c10c2089e460a85913caa48538b03a975f5b60b1..bc82d52b73774fcd844526aaa97a3e88ba3e90e2 100644 (file)
--- a/hosts
+++ b/hosts
@@ -1,7 +1,9 @@
-# This file is a merged collection of hosts from reputable sources,
+# This hosts file is a merged collection of hosts from reputable sources,
 # with a dash of crowd sourcing via Github
 #
-# Latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
+# Date: February 27 2016
+#
+# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
 # Project home page: https://github.com/StevenBlack/hosts
 #
 # ===============================================================
index 1c6130dc11045f620d3b8d321a7cdbdbe003b38c..427f2a32a59b781e2700e2d5db9dfb93d08fb683 100644 (file)
@@ -338,9 +338,10 @@ def writeOpeningHeader(finalFile):
     finalFile.seek(0) #reset file pointer
     fileContents = finalFile.read()  #save content
     finalFile.seek(0) #write at the top
-    writeData(finalFile, '# This file is a merged collection of hosts from reputable sources,\n')
+    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, '# Latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts\n')
+    writeData(finalFile, '# Date: ' + time.strftime("%B %d %Y", time.gmtime()) + '\n#\n')
+    writeData(finalFile, '# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/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