Skip to content

Commit 4963fae

Browse files
author
Jürgen Hermann
committed
Added .newitem extension
1 parent 4974fda commit 4963fae

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/install_util.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@
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.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 $
1919

2020
__doc__ = """
2121
Support module to generate and check fingerprints of installed files.
2222
"""
2323

2424
import os, sha, shutil
2525

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"]
2728
hash_file_types = [".py", ".sh", ".conf", ".cgi", '']
2829
slast_file_types = [".css"]
2930

@@ -81,7 +82,6 @@ def write(self, data):
8182
def close(self):
8283
file, ext = os.path.splitext(self.filename)
8384

84-
# ".filter", ".index", ".item" are roundup-specific
8585
if ext in sgml_file_types:
8686
self.file.write("<!-- SHA: %s -->\n" % (self.digest.hexdigest(),))
8787
elif ext in hash_file_types:
@@ -149,6 +149,9 @@ def test():
149149

150150
#
151151
# $Log: not supported by cvs2svn $
152+
# Revision 1.6 2001/11/22 15:46:42 jhermann
153+
# Added module docstrings to all modules.
154+
#
152155
# Revision 1.5 2001/11/12 23:17:38 jhermann
153156
# Code using copyDigestedFile() that passes unit tests
154157
#

0 commit comments

Comments
 (0)