summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-15 16:24:14 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-15 16:24:14 +0000
commitea70994943c8ae8b46565b0ddf4b01452038fd25 (patch)
treec0aaeae9d83a205445b9afb77783184ece8e7335 /urpm
parent0b5f2842b8a89ada98050c1c5448d9a0438b1fde (diff)
downloadurpmi-ea70994943c8ae8b46565b0ddf4b01452038fd25.tar
urpmi-ea70994943c8ae8b46565b0ddf4b01452038fd25.tar.gz
urpmi-ea70994943c8ae8b46565b0ddf4b01452038fd25.tar.bz2
urpmi-ea70994943c8ae8b46565b0ddf4b01452038fd25.tar.xz
urpmi-ea70994943c8ae8b46565b0ddf4b01452038fd25.zip
- urpmf, urpmq:
o fix using xml info files with spaces in medium name (as reported in a comment of bug #36742)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/xml_info.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/xml_info.pm b/urpm/xml_info.pm
index 4148940f..24d1d101 100644
--- a/urpm/xml_info.pm
+++ b/urpm/xml_info.pm
@@ -23,7 +23,8 @@ sub do_something_with_nodes {
sub _open_xml_reader {
my ($xml_info_file) = @_;
- open(my $F, "lzma -dc $xml_info_file |");
+ $xml_info_file =~ s/'/\'/g;
+ open(my $F, "lzma -dc '$xml_info_file' |");
my $reader = new XML::LibXML::Reader(IO => $F) or die "cannot read $xml_info_file\n";
$reader->read;