aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-01-30 14:54:23 +0000
committerThierry Vignaud <tv@mandriva.org>2008-01-30 14:54:23 +0000
commit93e9f55dcd530ea9cef798f753142b15780017bf (patch)
tree8d3bbbb4dc4423834b957f46792335db1b235b3c /Rpmdrake
parent81b5428ee5aeb7647777527a8f38679e4eab2f84 (diff)
downloadrpmdrake-93e9f55dcd530ea9cef798f753142b15780017bf.tar
rpmdrake-93e9f55dcd530ea9cef798f753142b15780017bf.tar.gz
rpmdrake-93e9f55dcd530ea9cef798f753142b15780017bf.tar.bz2
rpmdrake-93e9f55dcd530ea9cef798f753142b15780017bf.tar.xz
rpmdrake-93e9f55dcd530ea9cef798f753142b15780017bf.zip
(extract_header) handle "could not find foobar in <xml_info_file>" (#37211)
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index f0fffa7b..0ba57602 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -113,7 +113,8 @@ sub extract_header {
require urpm::xml_info;
require urpm::xml_info_pkg;
$urpm->{log}("getting information from $xml_info_file");
- my %nodes = urpm::xml_info::get_nodes($xml_info, $xml_info_file, [ $name ]);
+ my %nodes = eval { urpm::xml_info::get_nodes($xml_info, $xml_info_file, [ $name ]) };
+ goto header_non_available if $@;
put_in_hash($xml_info_pkgs{$name} ||= {}, $nodes{$name});
} else {
my $pkgs_text = join(' ', $name);