[PAR2Set] Fix extraction head regular expression
authorIra W. Snyder <devel@irasnyder.com>
Mon, 8 Jan 2007 19:56:43 +0000 (11:56 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Mon, 8 Jan 2007 19:56:43 +0000 (11:56 -0800)
The regular expression for finding the extraction heads of an OldRAR type
was incorrect. This patch adds the missing termination character.

This keeps it from trying to extract files created during repair, such as:
X.rar.1

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
PAR2Set/OldRAR.py

index f8b5719..b872ccf 100644 (file)
@@ -63,7 +63,7 @@ class OldRAR (PAR2Set.Base.Base):
        def find_extraction_heads (self):
                """Find the heads of extraction for an old-style rar set"""
 
-               return rsutil.common.find_matches ('^.*\.rar', self.all_files)
+               return rsutil.common.find_matches ('^.*\.rar$', self.all_files)
 
        def extraction_function (self, file, todir):
                """Extract a single rar file to the given directory.