aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-11-24 17:41:20 +0000
committerThierry Vignaud <tv@mandriva.org>2008-11-24 17:41:20 +0000
commit8d60ac8e3f131a47c1725e5a7283e7a768440faf (patch)
treeb54042e7036954192acc187092a39e95f8eda578 /Rpmdrake
parentf0500dfb330e21b626681f476eb474e498812edc (diff)
downloadrpmdrake-8d60ac8e3f131a47c1725e5a7283e7a768440faf.tar
rpmdrake-8d60ac8e3f131a47c1725e5a7283e7a768440faf.tar.gz
rpmdrake-8d60ac8e3f131a47c1725e5a7283e7a768440faf.tar.bz2
rpmdrake-8d60ac8e3f131a47c1725e5a7283e7a768440faf.tar.xz
rpmdrake-8d60ac8e3f131a47c1725e5a7283e7a768440faf.zip
(edit_callback) do not save empty values
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index b19afacc..90989845 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,
- update => $update,
- proxy => $saved_proxy,
- downloader => $downloader,
+ if_($update ne $media->{update}, update => $update),
+ if_($saved_proxy ne $media->{proxy}, proxy => $saved_proxy),
+ if_($downloader ne $media->{downloader}, downloader => $downloader),
modified => 1,
});
urpm::media::write_config($urpm);