aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-27 09:35:06 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-27 09:35:06 +0000
commitbc18f534d33052650bc991c8310a5f10509c45bc (patch)
treea51688ae5ab982491f25340f255594ba8f627ad8 /Rpmdrake
parent163ed5a663d77538edc85d79ed49e58b54e74728 (diff)
downloadrpmdrake-bc18f534d33052650bc991c8310a5f10509c45bc.tar
rpmdrake-bc18f534d33052650bc991c8310a5f10509c45bc.tar.gz
rpmdrake-bc18f534d33052650bc991c8310a5f10509c45bc.tar.bz2
rpmdrake-bc18f534d33052650bc991c8310a5f10509c45bc.tar.xz
rpmdrake-bc18f534d33052650bc991c8310a5f10509c45bc.zip
(warn_about_media) do not update again media after installing/removing some packages (#32586)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-xRpmdrake/pkg.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 36248fa0..c5df71e1 100755
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -184,6 +184,10 @@ sub warn_about_media {
my $update_name = 'update_source';
return if !member($::default_list_mode, qw(all_updates security bugfix normal));
return if $::rpmdrake_options{'no-media-update'};
+
+ # do not update again media after installing/removing some packages:
+ $::rpmdrake_options{'no-media-update'} ||= 1;
+
if (@update_medias > 0) {
if (!$opts->{skip_updating_mu} && !$is_update_media_already_asked) {
$is_update_media_already_asked = 1;