diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-23 16:15:08 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-23 16:15:08 +0000 |
commit | 1a66093ca5f5ffac11eba7206d74e2c93a51517a (patch) | |
tree | 827ab5116e45bc0274285f69c782b9eed81837b2 /perl-install/install | |
parent | 94f19b9caa8e426be4b5aec22b72141420168d42 (diff) | |
download | drakx-1a66093ca5f5ffac11eba7206d74e2c93a51517a.tar drakx-1a66093ca5f5ffac11eba7206d74e2c93a51517a.tar.gz drakx-1a66093ca5f5ffac11eba7206d74e2c93a51517a.tar.bz2 drakx-1a66093ca5f5ffac11eba7206d74e2c93a51517a.tar.xz drakx-1a66093ca5f5ffac11eba7206d74e2c93a51517a.zip |
adjust old code for ->{selected} => ->{ignore} switch
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/media.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index da0e121ce..3a36d4905 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -33,9 +33,9 @@ use urpm::media; #- pubkey (array containing all the keys to import) #- phys_medium #- rpmsdir -#- selected +#- ignore #- size (in MB) -#- start (first rpm id, undefined iff not selected) +#- start (first rpm id, undefined if ignored) #- update (for install_urpmi) @@ -249,7 +249,7 @@ sub _associate_phys_media { log::l("setting medium $medium->{name} phys_medium to $phys_m->{url}"); $medium->{phys_medium} = $phys_m; } else { - $medium->{selected} = 0; + $medium->{ignore} = 1; log::l("deselecting missing medium $medium->{rpmsdir}"); } } @@ -675,7 +675,7 @@ sub get_media_cfg { if (defined $selected_names) { my @names = split ',', $selected_names; foreach my $h (@$hdlists) { - $h->{selected} = member($h->{name}, @names); + $h->{ignore} = !member($h->{name}, @names); } } @@ -721,7 +721,7 @@ sub get_standalone_medium { sub _get_medium { my ($in_wait, $phys_m, $packages, $m) = @_; - $m->{selected} or log::l("ignoring packages in $m->{rel_hdlist}"), return; + !$m->{ignore} or log::l("ignoring packages in $m->{rel_hdlist}"), return; my $medium_id = int @{$packages->{media}}; $m->{fakemedium} = $m->{name} || $phys_m->{method}; @@ -886,7 +886,7 @@ sub copy_rpms_on_disk { #- keep in mind the asked medium has been refused. #- this means it is no longer selected. #- (but do not unselect supplementary CDs.) - $m->{selected} = 0; + $m->{ignore} = 1; } } my $dest_medium_dir = $dest_dir . '/' . basename($rpmsdir); @@ -929,7 +929,7 @@ sub install_urpmi { my (@cfg, @netrc); foreach my $medium (@media) { - if ($medium->{selected}) { + if (!$medium->{ignore}) { my ($dir, $removable_device); my $phys_m = $medium->{phys_medium}; |