diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-11-24 17:46:35 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-11-24 17:46:35 +0000 |
commit | 45cbff104d65416890419e2d20c422fbd88f6be2 (patch) | |
tree | d80fd2289b8f92bbb0267397ed0591b5bddd122b | |
parent | 8d60ac8e3f131a47c1725e5a7283e7a768440faf (diff) | |
download | rpmdrake-45cbff104d65416890419e2d20c422fbd88f6be2.tar rpmdrake-45cbff104d65416890419e2d20c422fbd88f6be2.tar.gz rpmdrake-45cbff104d65416890419e2d20c422fbd88f6be2.tar.bz2 rpmdrake-45cbff104d65416890419e2d20c422fbd88f6be2.tar.xz rpmdrake-45cbff104d65416890419e2d20c422fbd88f6be2.zip |
(edit_callback) keep previous values
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 90989845..4fc77fd0 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -524,9 +524,9 @@ sub edit_callback() { put_in_hash($media, { ($verbatim_medium->{mirrorlist} ? 'mirrorlist' : 'url') => $url, name => $name, - if_($update ne $media->{update}, update => $update), - if_($saved_proxy ne $media->{proxy}, proxy => $saved_proxy), - if_($downloader ne $media->{downloader}, downloader => $downloader), + if_($update ne $media->{update} || $update, update => $update), + if_($saved_proxy ne $media->{proxy} || $saved_proxy, proxy => $saved_proxy), + if_($downloader ne $media->{downloader} || $downloader, downloader => $downloader), modified => 1, }); urpm::media::write_config($urpm); |