diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-02-21 14:24:44 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-02-21 14:24:44 +0000 |
commit | c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6 (patch) | |
tree | 5700f86016a40fb0e2b96338bb3638b36851cfd5 | |
parent | 86478a9966b8dcf5cb7557dca5cfca355ab7d207 (diff) | |
download | rpmdrake-c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6.tar rpmdrake-c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6.tar.gz rpmdrake-c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6.tar.bz2 rpmdrake-c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6.tar.xz rpmdrake-c42ff57d65cf4d4dd3a819f5bb265c0ca33f76e6.zip |
(options_callback) fix altering XML info policy on cancel
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 4e672f59..6c55ae43 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -329,6 +329,7 @@ sub options_callback() { 'update-only' => N("Update-only"), 'always' => N("Always"), ); + my $xml_info_policy = $urpm->{global_config}{'xml-info'}; gtkadd( $w->{window}, @@ -348,7 +349,7 @@ sub options_callback() { children_loose => [ gtknew('Label', text => N("XML metada download policy:")), gtknew('ComboBox', - list => [ keys %xml_info_policies ], text_ref => \$urpm->{global_config}{'xml-info'}, + list => [ keys %xml_info_policies ], text_ref => \$xml_info_policy, format => sub { $xml_info_policies{$_[0]} || $_[0] }, tip => @@ -378,6 +379,7 @@ sub options_callback() { gtknew('Button', text => N("Ok")), clicked => sub { $urpm->{global_config}{'verify-rpm'} = $verify_rpm; $urpm->{global_config}{downloader} = $downloader; + $urpm->{global_config}{'xml-info'} = $xml_info_policy; $something_changed = 1; urpm::media::write_config($urpm); $urpm = fast_open_urpmi_db(); |