diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-08-27 16:25:32 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-09-12 23:11:58 +0200 |
commit | f7c6659ff58213f0ec96a6597937b6adb6c6cfd1 (patch) | |
tree | 97b44235920bd8bdee137165103505c24f74a12b | |
parent | e1d5e58ed6efd37e753d1587416efe6572c01334 (diff) | |
download | perl-URPM-f7c6659ff58213f0ec96a6597937b6adb6c6cfd1.tar perl-URPM-f7c6659ff58213f0ec96a6597937b6adb6c6cfd1.tar.gz perl-URPM-f7c6659ff58213f0ec96a6597937b6adb6c6cfd1.tar.bz2 perl-URPM-f7c6659ff58213f0ec96a6597937b6adb6c6cfd1.tar.xz perl-URPM-f7c6659ff58213f0ec96a6597937b6adb6c6cfd1.zip |
s/suggests/recommends/ in method names
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | URPM/Resolve.pm | 28 |
2 files changed, 15 insertions, 14 deletions
@@ -3,6 +3,7 @@ - rename "suggests" method as "recommends_nosense" - add support for generating @recommends@ lines instead of @suggests@ ones in synthesis +- rename *suggests* subs as *recommends* Version 4.31 - 27 June 2014 diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 5be4f32..2b5bcc7 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -1088,28 +1088,28 @@ The following options are recognized : =back -It actually calls resolve_requested__no_suggests() and resolve_requested_suggests(). +It actually calls resolve_requested__no_recommends() and resolve_requested_recommends(). =cut sub resolve_requested { my ($urpm, $db, $state, $requested, %options) = @_; - my @selected = resolve_requested__no_suggests($urpm, $db, $state, $requested, %options); + my @selected = resolve_requested__no_recommends($urpm, $db, $state, $requested, %options); if (!$options{no_suggests}) { - @selected = resolve_requested_suggests($urpm, $db, $state, \@selected, %options); + @selected = resolve_requested_recommends($urpm, $db, $state, \@selected, %options); } @selected; } -=item resolve_requested_suggests($urpm, $db, $state, $selected, %options) +=item resolve_requested_recommends($urpm, $db, $state, $selected, %options) Select newly suggested package is installed as if (hard) required. =cut -sub resolve_requested_suggests { +sub resolve_requested_recommends { my ($urpm, $db, $state, $selected, %options) = @_; my @todo = @$selected; while (@todo) { @@ -1135,7 +1135,7 @@ sub resolve_requested_suggests { $urpm->{debug_URPM}("requested " . join(', ', keys %recommends) . " suggested by " . $pkg->fullname) if $urpm->{debug_URPM}; my %new_requested = map { $_ => undef } keys %recommends; - my @new_selected = resolve_requested__no_suggests_($urpm, $db, $state, \%new_requested, %options); + my @new_selected = resolve_requested__no_recommends_($urpm, $db, $state, \%new_requested, %options); $state->{selected}{$_->id}{suggested} = 1 foreach @new_selected; push @$selected, @new_selected; push @todo, @new_selected; @@ -1144,16 +1144,16 @@ sub resolve_requested_suggests { @$selected; } -=item resolve_requested__no_suggests($urpm, $db, $state, $requested, %options) +=item resolve_requested__no_recommends($urpm, $db, $state, $requested, %options) Like resolve_requested() but doesn't handle recommends =cut -# see resolve_requested above for information about usage (modulo 'no_suggests' option) +# see resolve_requested above for information about usage (modulo 'no_recommends' option) #- side-effects: flag_requested -#- + those of resolve_requested__no_suggests_ -sub resolve_requested__no_suggests { +#- + those of resolve_requested__no_recommends_ +sub resolve_requested__no_recommends { my ($urpm, $db, $state, $requested, %options) = @_; foreach (keys %$requested) { @@ -1163,10 +1163,10 @@ sub resolve_requested__no_suggests { } } - resolve_requested__no_suggests_($urpm, $db, $state, $requested, %options); + resolve_requested__no_recommends_($urpm, $db, $state, $requested, %options); } -# same as resolve_requested__no_suggests, but do not modify requested_flag +# same as resolve_requested__no_recommends, but do not modify requested_flag #- #- side-effects: $state->{selected}, flag_required, flag_installed, flag_upgrade #- + those of backtrack_selected (flag_requested, $state->{rejected}, $state->{whatrequires}, $state->{backtrack}) @@ -1176,7 +1176,7 @@ sub resolve_requested__no_suggests { #- + those of backtrack_selected_psel_keep (flag_requested, $state->{whatrequires}) #- + those of _handle_diff_provides (flag_requested, $state->{rejected}, $state->{whatrequires}) #- + those of _no_more_recent_installed_and_providing ($state->{rejected}) -sub resolve_requested__no_suggests_ { +sub resolve_requested__no_recommends_ { my ($urpm, $db, $state, $requested, %options) = @_; my @properties = map { @@ -2296,7 +2296,7 @@ sub build_transaction_set { } my %requested = map { $_ => undef } @ids; - resolve_requested__no_suggests_($urpm, + resolve_requested__no_recommends_($urpm, $db, $state->{transaction_state} ||= {}, \%requested, defined $options{start} ? (start => $options{start}) : @{[]}, |