From ff72490e95713c7cd55790128c3f190eb12f0f30 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 6 Jan 2012 19:43:53 +0000 Subject: (open_lzma) fix using xml info files with quotess in medium name (with urpmf & urpmq) introduced in r232995 by pixel on 2008-01-15 ("fix using xml info files with spaces in medium name") (cautgh by perl_checker) --- urpm/xml_info.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm') diff --git a/urpm/xml_info.pm b/urpm/xml_info.pm index 58858491..74869957 100644 --- a/urpm/xml_info.pm +++ b/urpm/xml_info.pm @@ -23,7 +23,7 @@ sub do_something_with_nodes { sub open_lzma { my ($xml_info_file) = @_; - $xml_info_file =~ s/'/\'/g; + $xml_info_file =~ s/'/'\\''/g; open(my $F, "lzma -dc '$xml_info_file' |"); $F; } -- cgit v1.2.1