2 # vim: set ts=4 sts=4 sw=4 textwidth=92:
5 from RarslaveCommon import *
8 # This is another base class for types that must
9 # run the extraction routine before the repair routine
11 # It will detect sets like the following:
19 # Where the PAR2 files protect a file named X.avi, but not the X.part01.rar
23 class PAR2Set_EXTRACTFIRST (PAR2Set.PAR2Set):
28 ret = self.runExtract ()
31 fatalMessage ('Extraction stage failed for: %s' % self.p2file)
34 self.update_matches ()
37 ret = self.runVerifyAndRepair ()
40 fatalMessage ('Repair stage failed for: %s' % self.p2file)
43 self.update_matches ()
46 ret = self.runDelete ()
49 fatalMessage ('Deletion stage failed for: %s' % self.p2file)
52 normalMessage ('Successfully completed: %s' % self.p2file)