File: fix-dash-r-option.patch

package info (click to toggle)
mb2md 3.20-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 480 kB
  • sloc: perl: 2,170; makefile: 6; sh: 3
file content (24 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Fixes non-functionality of the -r option
Bug-Debian: https://bugs.debian.org/333499
Author: Bastien Mourgues <b.mourgues@newtech.fr>
Reviewd-By: Axel Beckert <abe@debian.org>

--- a/mb2md-3.20.pl
+++ b/mb2md-3.20.pl
@@ -642,6 +642,7 @@
 	
 	# Appending $oldpath => path is only missing $dest
 	$destinationdir = "$temppath.$destinationdir";
+	defined($strip_ext) && ($destinationdir =~ s/\_$strip_ext$//);
 
 	# Converting '/' to '.' in $destinationdir
 	$destinationdir =~s/\/+/\./g;
@@ -677,7 +678,7 @@
 		#
 		# if $strip_extension is defined,
 		# strip it off the $targetfile
-	    	defined($strip_ext) && ($destinationdir =~ s/\.$strip_ext$//);
+#	    	defined($strip_ext) && ($destinationdir =~ s/\_$strip_ext$//);
 		&convert("$mbroot/$oldpath/$dir","$dest/$destinationdir");
 		$mailboxcount++;
 	}