summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 12:51:56 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 12:51:56 +0000
commita7daafde9b77d5c50deeb53cc67fd8475a922465 (patch)
treee9d5938fe67eccb182c62bea2d737d0ffb6006fe /urpm
parentacf6abe23956c574fd1fadf56191ede150ec0fc0 (diff)
downloadurpmi-a7daafde9b77d5c50deeb53cc67fd8475a922465.tar
urpmi-a7daafde9b77d5c50deeb53cc67fd8475a922465.tar.gz
urpmi-a7daafde9b77d5c50deeb53cc67fd8475a922465.tar.bz2
urpmi-a7daafde9b77d5c50deeb53cc67fd8475a922465.tar.xz
urpmi-a7daafde9b77d5c50deeb53cc67fd8475a922465.zip
- urpmi.addmedia
o --interactive: fix selecting "noauto" media (#39522)
Diffstat (limited to 'urpm')
-rw-r--r--urpm/media.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index 677feab1..d1dc8644 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -852,12 +852,14 @@ sub add_distrib_media {
}
my $add_by_default = !$distribconf->getvalue($media, 'noauto');
+ my $ignore;
if ($options{ask_media}) {
$options{ask_media}->($media_name, $add_by_default) or next;
} else {
my $simple_rpms = !$distribconf->getvalue($media, 'debug_for') &&
!$distribconf->getvalue($media, 'rpms');
$add_by_default || $simple_rpms or next;
+ $ignore = !$add_by_default;
}
my $use_copied_synthesis = urpm::is_cdrom_url($url) || $urpm->{options}{use_copied_hdlist} || $distribconf->getvalue($media, 'use_copied_hdlist');
@@ -873,7 +875,7 @@ sub add_distrib_media {
!$use_copied_synthesis ? (media_info_dir => 'media_info') : (),
!$use_copied_synthesis && $options{probe_with} ? ($options{probe_with} => 1) : (),
index_name => $name ? undef : 0,
- $add_by_default ? () : (ignore => 1),
+ $ignore ? (ignore => 1) : (),
%options,
# the following override %options
$options{mirrorlist} ? ('with-dir' => $distribconf->getpath($media, 'path')) : (),