summaryrefslogtreecommitdiffstats
path: root/urpm/xml_info.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2017-09-18 10:57:53 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2017-09-18 11:11:01 +0200
commiteccd082a73cfeb77a8e02150869181b51534f4b0 (patch)
tree21ce3f540d55e904e87b34b0a499f07acba45652 /urpm/xml_info.pm
parent7ca2c49f10e1b9e0d01e09982eb63bbc686912fe (diff)
downloadurpmi-eccd082a73cfeb77a8e02150869181b51534f4b0.tar
urpmi-eccd082a73cfeb77a8e02150869181b51534f4b0.tar.gz
urpmi-eccd082a73cfeb77a8e02150869181b51534f4b0.tar.bz2
urpmi-eccd082a73cfeb77a8e02150869181b51534f4b0.tar.xz
urpmi-eccd082a73cfeb77a8e02150869181b51534f4b0.zip
use XML::LibXML::Parser's 'huge' option
this is needed b/c of eg: ruby-google-api-client-doc which filelist is 11mb. However this makes libxml2 to fail b/c XML_MAX_TEXT_LENGTH is 10mb: $ urpmf-fast iso-grk2.gml Entity: line 4014501: parser error : xmlSAX2Characters: huge text node sr/share/gems/doc/google-api-client-0.13.5/ri/Google/Apis/SqladminV1beta3/Import
Diffstat (limited to 'urpm/xml_info.pm')
-rw-r--r--urpm/xml_info.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/xml_info.pm b/urpm/xml_info.pm
index 10fab691..be31159d 100644
--- a/urpm/xml_info.pm
+++ b/urpm/xml_info.pm
@@ -44,7 +44,7 @@ sub open_lzma {
sub _open_xml_reader {
my ($xml_info_file) = @_;
- my $reader = new XML::LibXML::Reader(IO => open_lzma($xml_info_file)) or die "cannot read $xml_info_file\n";
+ my $reader = new XML::LibXML::Reader(IO => open_lzma($xml_info_file), huge => 1) or die "cannot read $xml_info_file\n";
$reader->read;
$reader->name eq 'media_info' or die "global <media_info> tag not found\n";