aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-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 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);