Commit 4bfc4cff authored by mitshel's avatar mitshel
Browse files

Внесены несущественные исправления в процедуру prozesszip модуля sopds-scan.py

parent c7ca3094
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -166,12 +166,9 @@ def processzip(db,fb2,name,full_path,file):
    global arch_skipped
    global bad_archives

#    rel_path=os.path.relpath(full_path,cfg.ROOT_LIB)
#    rel_file=os.path.join(rel_path,name)
    rel_path=os.path.relpath(file,cfg.ROOT_LIB)
    rel_file=rel_path
    rel_file=os.path.relpath(file,cfg.ROOT_LIB)
    if cfg.ZIPRESCAN or db.zipisscanned(rel_file)==0:
       cat_id=db.addcattree(rel_path,1)
       cat_id=db.addcattree(rel_file,1)
       try:
          z = zipf.ZipFile(file, 'r', allowZip64=True, codepage=cfg.ZIP_CODEPAGE)
          filelist = z.namelist()
+0 −0

Empty file added.