From 36fea458fd58a5e88657541f10f9eba8a7adb0d4 Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Mon, 8 Jan 2007 11:56:43 -0800 Subject: [PATCH] [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 --- PAR2Set/OldRAR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.34.1