diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-06 14:11:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-06 14:11:08 +0000 |
commit | a0a23a5f52756fc33890cd5c0ea9cf43d187002b (patch) | |
tree | 3e8f14ccc1ef755f3581fa87c73735acdb53c5ca /Rpmdrake/pkg.pm | |
parent | 14c8374664218e017e5d01e05387ec08d273b765 (diff) | |
download | rpmdrake-a0a23a5f52756fc33890cd5c0ea9cf43d187002b.tar rpmdrake-a0a23a5f52756fc33890cd5c0ea9cf43d187002b.tar.gz rpmdrake-a0a23a5f52756fc33890cd5c0ea9cf43d187002b.tar.bz2 rpmdrake-a0a23a5f52756fc33890cd5c0ea9cf43d187002b.tar.xz rpmdrake-a0a23a5f52756fc33890cd5c0ea9cf43d187002b.zip |
(extract_header) make sure we destroy the download progress dialog on error
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r-- | Rpmdrake/pkg.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 47dc55cf..87553e65 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -115,6 +115,7 @@ sub extract_header { } else { 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 = urpm::media::any_xml_info($urpm, $medium, $xml_info, undef, sub { $urpm ||= Rpmdrake::gurpm->new(N("Please wait"), transient => $::main_window); download_callback($gurpm, @_) |