2 # vim: set ts=4 sts=4 sw=4 textwidth=92:
6 from RarslaveCommon import *
9 # This is another base class for types that must
10 # run the extraction routine before the repair routine
12 # It will detect sets like the following:
20 # Where the PAR2 files protect a file named X.avi, but not the X.part01.rar
24 class ExtractFirstBase (PAR2Set.Base.Base):
29 ret = self.runExtract ()
32 logging.critical ('Extraction stage failed for: %s' % self.p2file)
35 self.update_matches ()
38 ret = self.runVerifyAndRepair ()
41 logging.critical ('Repair stage failed for: %s' % self.p2file)
44 self.update_matches ()
47 ret = self.runDelete ()
50 logging.critical ('Deletion stage failed for: %s' % self.p2file)
53 logging.info ('Successfully completed: %s' % self.p2file)