summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--urpm/xml_info.pm3
2 files changed, 5 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 0117e935..bcf5a372 100644
--- a/NEWS
+++ b/NEWS
@@ -1,9 +1,11 @@
+- urpmf, urpmq:
+ o fix using xml info files with spaces in medium name
- urpmf:
o fix --license
- urpmq:
o add --sourcerpm
o deprecate "urpmq --requires", "urpmq -R" and "urpmq -RR"
- o fix --list (regression introduced in 5.0)
+ o fix --list (regression introduced in 5.0) (#36742)
Version 5.0 - 11 January 2008, by Pascal "Pixel" Rigaux
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;