From: Ira W. Snyder Date: Mon, 8 Jan 2007 19:56:43 +0000 (-0800) Subject: [PAR2Set] Fix extraction head regular expression X-Git-Tag: v2.0.0~2 X-Git-Url: https://www.irasnyder.com/gitweb/?p=rarslave2.git;a=commitdiff_plain;h=36fea458fd58a5e88657541f10f9eba8a7adb0d4 [PAR2Set] Fix extraction head regular expression 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 --- diff --git a/PAR2Set/OldRAR.py b/PAR2Set/OldRAR.py index f8b5719..b872ccf 100644 --- a/PAR2Set/OldRAR.py +++ b/PAR2Set/OldRAR.py @@ -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.