#!/usr/bin/env python
# vim: set ts=4 sts=4 sw=4 textwidth=92:
-import PAR2Set_NEWRAR
-import PAR2Set_EXTRACTFIRST
-from RarslaveCommon import *
+import PAR2Set.ExtractFirstBase
+import PAR2Set.NewRAR
+import rsutil.common
#
# This is an old-style rar type
# with the PAR2 file itself.
#
-def detect_EF_NEWRAR (name_files, prot_files):
- return has_a_match ('^.*\.part0*1\.rar$', name_files) \
- and not has_a_match ('^.*\.part0*1\.rar$', prot_files)
+def detector (name_files, prot_files):
+ return rsutil.common.has_a_match ('^.*\.part0*1\.rar$', name_files) \
+ and not rsutil.common.has_a_match ('^.*\.part0*1\.rar$', prot_files)
-class PAR2Set_EF_NEWRAR (PAR2Set_EXTRACTFIRST.PAR2Set_EXTRACTFIRST,
- PAR2Set_NEWRAR.PAR2Set_NEWRAR):
+class ExtractFirstNewRAR (PAR2Set.ExtractFirstBase.ExtractFirstBase, \
+ PAR2Set.NewRAR.NewRAR):
def __repr__ (self):
return 'EXTRACTFIRST NEWRAR'