aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive/Storage
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:15:54 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:15:54 (GMT)
commit1af5ec1e05c0cd5dfa1737d0822aaaa73a5a9833 (patch)
tree58898a21a482b392928c7d1f092f60954bfaca64 /FuseArchive/Storage
parent2d3e545f3c7fc1c0e0ae2a78593199e4b76a04a6 (diff)
downloadfusearchive-1af5ec1e05c0cd5dfa1737d0822aaaa73a5a9833.zip
fusearchive-1af5ec1e05c0cd5dfa1737d0822aaaa73a5a9833.tar.gz
fusearchive-1af5ec1e05c0cd5dfa1737d0822aaaa73a5a9833.tar.bz2
Added binary format chunk serializer
Diffstat (limited to 'FuseArchive/Storage')
-rw-r--r--FuseArchive/Storage/FileSystem.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py
index 4310481..547e567 100644
--- a/FuseArchive/Storage/FileSystem.py
+++ b/FuseArchive/Storage/FileSystem.py
@@ -1,5 +1,6 @@
import FuseArchive, logging, os, sha
from binascii import hexlify
+from FuseArchive.Chunk import Chunk
magic_depth = 5
@@ -51,7 +52,7 @@ def save_chunk( chunk ):
verify_contents = verify.read()
verify.close()
- verify_contents = FuseArchiveChunk.deserialize( verify_contents )
+ verify_contents = Chunk.deserialize( verify_contents )
if verify_contents.chunk == chunk:
logging.debug( "Found existing block" )
break