aboutsummaryrefslogtreecommitdiffstats
path: root/FuseArchive
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:08:06 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2009-08-04 05:08:06 (GMT)
commit9b0b52e5242643e82eb74b64bce90f5e643b532a (patch)
treeda7de26d52c08d40a6f79648b1f3768f2bf24980 /FuseArchive
parent3751c39fe8ae6abf161dd18924e0cc733bf5800f (diff)
downloadfusearchive-9b0b52e5242643e82eb74b64bce90f5e643b532a.zip
fusearchive-9b0b52e5242643e82eb74b64bce90f5e643b532a.tar.gz
fusearchive-9b0b52e5242643e82eb74b64bce90f5e643b532a.tar.bz2
Namespace/module fixes
Diffstat (limited to 'FuseArchive')
-rw-r--r--FuseArchive/Storage/FileSystem.py9
-rw-r--r--FuseArchive/Storage/ZipFile.py1
2 files changed, 8 insertions, 2 deletions
diff --git a/FuseArchive/Storage/FileSystem.py b/FuseArchive/Storage/FileSystem.py
index bdb6176..4310481 100644
--- a/FuseArchive/Storage/FileSystem.py
+++ b/FuseArchive/Storage/FileSystem.py
@@ -1,3 +1,8 @@
+import FuseArchive, logging, os, sha
+from binascii import hexlify
+
+magic_depth = 5
+
# This will write out a data block, it will return a key that can get this
# data back later
def save_chunk( chunk ):
@@ -5,7 +10,7 @@ def save_chunk( chunk ):
return( [ 0, 0 ] )
logging.debug( "Begin save_chunk, length: %d" % len( chunk ) )
- if deep_debug:
+ if FuseArchive.deep_debug:
logging.debug( "Chunk: %s" + hexlify( chunk ) )
# Save this hash string, similar to the backuppc algo
@@ -94,7 +99,7 @@ def load_chunk( key ):
else:
raise IOError
- if deep_debug:
+ if FuseArchive.deep_debug:
logging.debug( "Load-Chunk: %s" + hexlify( chunk ) )
return chunk
diff --git a/FuseArchive/Storage/ZipFile.py b/FuseArchive/Storage/ZipFile.py
index c76b5bb..755c2a4 100644
--- a/FuseArchive/Storage/ZipFile.py
+++ b/FuseArchive/Storage/ZipFile.py
@@ -1,4 +1,5 @@
import os, logging
+from binascii import hexlify
def save_chunk( chunk ):
if FuseArchive.magic_profiling: