summaryrefslogtreecommitdiffstats
path: root/urpm/xml_info.pm
diff options
context:
space:
mode:
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 a2a55be0..48368c47 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), huge => 1) or die "cannot read $xml_info_file\n";
+ my $reader = XML::LibXML::Reader->new(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";