author | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-04-10 01:46:43 UTC |
committer | Alberto Bertogli
<albertogli@telpin.com.ar> 2005-04-10 01:46:43 UTC |
parent | 0ab916bdfca8782e6aab6c4a8d4a767bc37bbbdb |
abk | +6 | -6 |
diff --git a/abk b/abk index b9c2c56..7818603 100644 --- a/abk +++ b/abk @@ -39,8 +39,8 @@ class file_info: self.rdev = None self.hash = None self.stat = None - - + + def __repr__(self): return "<%s: %s %d>" % (self.name, self.type, self.size) @@ -150,7 +150,7 @@ class file_info: sfile.close() dfile.close() - + copy_file_reg = copy_file_reg_gzip def copy_file_link(self, dst): @@ -225,11 +225,11 @@ class file_info: data = f.read(PSIZE) f.close() return hash.hexdigest() - + def hash_file_none(self): "Empty hash." return '-' - + hash_file = hash_file_sha @@ -370,7 +370,7 @@ def make_sync(src_path, srcidx_path, dst_path, dstidx_path): dst = dst_path + '/' + f printv('mdata\t', f, dst) update_files.append((f, dst)) - + # metadata gets changed later because otherwise we could leave # directory times wrong due to files being added to a directory after # their creation; this way we're sure there will be no more file