summaryrefslogtreecommitdiff
path: root/summainlib.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-11 19:54:15 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-11 19:54:15 +0100
commit8d2493c09465f933bf72922b118078813cae8d37 (patch)
tree5795e93172c3bfa49cc350d397a3a5ac6adcb21a /summainlib.py
parent6dee09fe1b6bf92ae8bd190edc014df84fea19cb (diff)
downloadsummain-8d2493c09465f933bf72922b118078813cae8d37.tar.gz
Add --checksum option to allow choosing checksums to compute.
Only SHA1 is computed by default.
Diffstat (limited to 'summainlib.py')
-rw-r--r--summainlib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/summainlib.py b/summainlib.py
index 3cc92d5..cf17fe2 100644
--- a/summainlib.py
+++ b/summainlib.py
@@ -160,7 +160,8 @@ class FilesystemObject(object):
'''
- def __init__(self, filename, nn, pn, exclude, stat_result=None, sha1=None,
+ def __init__(self, filename, nn, pn, exclude, checksums,
+ stat_result=None, sha1=None,
md5=None, open_file=None, readlink=None):
self._filename = filename
self._exclude = set(self._normalize_key(k) for k in exclude)