summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-01-06 19:43:53 +0000
committerThierry Vignaud <tv@mageia.org>2012-01-06 19:43:53 +0000
commitff72490e95713c7cd55790128c3f190eb12f0f30 (patch)
tree575c6f408701751709c7ff183eab97e2feeca172
parent94ead5c886348823bab7f1c33abdb4bad368d7b2 (diff)
downloadurpmi-ff72490e95713c7cd55790128c3f190eb12f0f30.tar
urpmi-ff72490e95713c7cd55790128c3f190eb12f0f30.tar.gz
urpmi-ff72490e95713c7cd55790128c3f190eb12f0f30.tar.bz2
urpmi-ff72490e95713c7cd55790128c3f190eb12f0f30.tar.xz
urpmi-ff72490e95713c7cd55790128c3f190eb12f0f30.zip
(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)
-rw-r--r--NEWS2
-rw-r--r--urpm/xml_info.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5496d3fc..5691343b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- urpmf, urpmq:
+ o fix using xml info files with quotes in medium name
- urpmi
o do not compute orphan packages when handling priority upgrades
o disable dudf support (we've nothing server side)
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;
}