|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: install_util.py,v 1.6 2001-11-22 15:46:42 jhermann Exp $ |
| 18 | +# $Id: install_util.py,v 1.7 2001-11-24 01:00:13 jhermann Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | Support module to generate and check fingerprints of installed files. |
22 | 22 | """ |
23 | 23 |
|
24 | 24 | import os, sha, shutil |
25 | 25 |
|
26 | | -sgml_file_types = [".xml", ".ent", ".html", ".filter", ".index", ".item"] |
| 26 | +# ".filter", ".index", ".item", ".newitem" are roundup-specific |
| 27 | +sgml_file_types = [".xml", ".ent", ".html", ".filter", ".index", ".item", ".newitem"] |
27 | 28 | hash_file_types = [".py", ".sh", ".conf", ".cgi", ''] |
28 | 29 | slast_file_types = [".css"] |
29 | 30 |
|
@@ -81,7 +82,6 @@ def write(self, data): |
81 | 82 | def close(self): |
82 | 83 | file, ext = os.path.splitext(self.filename) |
83 | 84 |
|
84 | | - # ".filter", ".index", ".item" are roundup-specific |
85 | 85 | if ext in sgml_file_types: |
86 | 86 | self.file.write("<!-- SHA: %s -->\n" % (self.digest.hexdigest(),)) |
87 | 87 | elif ext in hash_file_types: |
@@ -149,6 +149,9 @@ def test(): |
149 | 149 |
|
150 | 150 | # |
151 | 151 | # $Log: not supported by cvs2svn $ |
| 152 | +# Revision 1.6 2001/11/22 15:46:42 jhermann |
| 153 | +# Added module docstrings to all modules. |
| 154 | +# |
152 | 155 | # Revision 1.5 2001/11/12 23:17:38 jhermann |
153 | 156 | # Code using copyDigestedFile() that passes unit tests |
154 | 157 | # |
|
0 commit comments