From abc51a9a773ae64ab3bca4660e7e107aec55d3aa Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Tue, 2 Jun 2009 17:05:44 +0200 Subject: [PATCH] improve extract_edb reliability --- libraries/entropy/tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/entropy/tools.py b/libraries/entropy/tools.py index 9c69858be..d103fcf0a 100644 --- a/libraries/entropy/tools.py +++ b/libraries/entropy/tools.py @@ -834,7 +834,7 @@ def extract_edb(tbz2file, dbpath = None): give_up_threshold = 1024000 * 30 # 30Mb entry_point = db_tag[::-1][0] written = False - max_read_len = db_tag_len - 1 + max_read_len = 8 while counter >= 0: cur_threshold = abs((counter-bytes)) @@ -905,7 +905,7 @@ def extract_edb(tbz2file, dbpath = None): db_tmp.close() db.flush() db.close() - os.remove(db_tmp_path) + #os.remove(db_tmp_path) return dbpath def remove_edb(tbz2file, savedir):