1515# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717#
18- # $Id: install_util.py,v 1.2 2001-11-12 22:37:13 richard Exp $
18+ # $Id: install_util.py,v 1.3 2001-11-12 22:38:48 richard Exp $
1919
2020import os , sha
2121
@@ -37,6 +37,7 @@ def checkDigest(filename):
3737 fingerprint = fingerprint .replace ('-->' , '' )
3838 fingerprint = fingerprint .strip ()
3939 elif lines [- 1 ][:8 ] == "/* SHA: " :
40+ # handle css files
4041 fingerprint = lines [- 1 ][8 :]
4142 fingerprint = fingerprint .replace ('*/' , '' )
4243 fingerprint = fingerprint .strip ()
@@ -76,7 +77,7 @@ def close(self):
7677 elif ext in [".py" , ".sh" , ".conf" , ".cgi" , '' ]:
7778 self .file .write ("#SHA: %s\n " % (self .digest .hexdigest (),))
7879 elif ext in [".css" ]:
79- self .file .write ("/* SHA: %s % /\n " % (self .digest .hexdigest (),))
80+ self .file .write ("/* SHA: %s * /\n " % (self .digest .hexdigest (),))
8081
8182 self .file .close ()
8283
@@ -108,6 +109,9 @@ def test():
108109
109110#
110111# $Log: not supported by cvs2svn $
112+ # Revision 1.2 2001/11/12 22:37:13 richard
113+ # Handle all the various file formats in roundup
114+ #
111115# Revision 1.1 2001/11/12 22:26:32 jhermann
112116# Added install utils (digest calculation)
113117#
0 commit comments