From 9b0b52e5242643e82eb74b64bce90f5e643b532a Mon Sep 17 00:00:00 2001 From: Steve Slaven Date: Mon, 3 Aug 2009 22:08:06 -0700 Subject: Namespace/module fixes 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: -- cgit v0.10.2