diff options
author | Thierry Vignaud <tv@mageia.org> | 2013-02-08 18:47:58 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2013-02-08 18:47:58 +0000 |
commit | 96889b58ae2e45f9cc1ef1668f75559ee1f5f19c (patch) | |
tree | a40450e1e67f1ef7096f4bc6b15739b3ca40057d /Rpmdrake/pkg.pm | |
parent | 5ab8f52c116f6f558901041ad6245120eacc3f18 (diff) | |
download | rpmdrake-96889b58ae2e45f9cc1ef1668f75559ee1f5f19c.tar rpmdrake-96889b58ae2e45f9cc1ef1668f75559ee1f5f19c.tar.gz rpmdrake-96889b58ae2e45f9cc1ef1668f75559ee1f5f19c.tar.bz2 rpmdrake-96889b58ae2e45f9cc1ef1668f75559ee1f5f19c.tar.xz rpmdrake-96889b58ae2e45f9cc1ef1668f75559ee1f5f19c.zip |
(extract_header) make it more readable
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index fe758998..53f1f09e 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -128,13 +128,14 @@ sub extract_header { my $gurpm; $bar_id = statusbar_msg(N("Getting '%s' from XML meta-data...", $xml_info), 0); my $_gurpm_clean_guard = before_leaving { undef $gurpm }; - if (my $xml_info_file = eval { urpm::media::any_xml_info($urpm, $medium, $xml_info, undef, sub { + my $xml_info_file = eval { urpm::media::any_xml_info($urpm, $medium, $xml_info, undef, sub { $gurpm ||= Rpmdrake::gurpm->new(N("Please wait"), '', # FIXME: add a real string after cooker transient => $::main_window); download_callback($gurpm, @_) or goto header_non_available; - }) }) { + }) }; + if ($xml_info_file) { require urpm::xml_info; require urpm::xml_info_pkg; $urpm->{log}("getting information from $xml_info_file"); |