diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-11 08:44:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-11 08:44:40 +0000 |
commit | 46254a55eced8372d55b4e2635561d7e94adc8a5 (patch) | |
tree | 8b9902e074b218c0b8562027e7c902831115f521 | |
parent | 53186fe13b8d8d6e9ef66c7cf2180a99a0eeed4c (diff) | |
download | perl-URPM-46254a55eced8372d55b4e2635561d7e94adc8a5.tar perl-URPM-46254a55eced8372d55b4e2635561d7e94adc8a5.tar.gz perl-URPM-46254a55eced8372d55b4e2635561d7e94adc8a5.tar.bz2 perl-URPM-46254a55eced8372d55b4e2635561d7e94adc8a5.tar.xz perl-URPM-46254a55eced8372d55b4e2635561d7e94adc8a5.zip |
move doc where it belongs
-rw-r--r-- | URPM.pm | 39 | ||||
-rw-r--r-- | URPM/Resolve.pm | 26 |
2 files changed, 39 insertions, 26 deletions
@@ -780,6 +780,45 @@ lower is prefered. =back +=head2 The $state object + +It has the following fields: + +B<backtrack>: { + selected => { id => undef }, + deadlock => { id|property => undef }, + } + +B<cached_installed>: { property_name => { fullname => undef } } + +B<oldpackage>: int + # will be passed to $trans->run to set RPMPROB_FILTER_OLDPACKAGE + +B<selected>: { id => { + requested => bool, install => bool, + from => pkg, psel => pkg, + promote => name, unsatisfied => [ id|property ] + } } + +B<rejected>: { fullname => { + size => int, removed => bool, obsoleted => bool, + backtrack => { + promote => [ name ], keep => [ fullname ], + unsatisfied => [ id|property ], + closure => { fullname => { old_requested => bool, + unsatisfied => [ id|property ] } }, + }, + } } + +B<whatrequires>: { name => { id => undef } } + # reversed requires_nosense for selected packages + +more fields only used in build_transaction_set and its callers): + +B<transaction>: [ { upgrade => [ id ], remove => [ fullname ] } ] + +B<transaction_state>: $state object + =head1 COPYRIGHT Copyright 2002, 2003, 2004, 2005 MandrakeSoft SA diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index 58bf9cb..67b7a71 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -10,32 +10,6 @@ use Config; sub min { my $n = shift; $_ < $n and $n = $_ foreach @_; $n } sub uniq { my %l; $l{$_} = 1 foreach @_; grep { delete $l{$_} } @_ } -#- $state fields: -#- -#- backtrack => { selected => { id => undef }, -#- deadlock => { id|property => undef } }, -#- -#- cached_installed => { property_name => { fullname => undef } }, -#- -#- oldpackage => int, -#- # will be passed to $trans->run to set RPMPROB_FILTER_OLDPACKAGE -#- -#- selected => { id => { requested => bool, install => bool, -#- from => pkg, psel => pkg, -#- promote => name, unsatisfied => [ id|property ] } }, -#- -#- rejected => { fullname => { size => int, removed => bool, obsoleted => bool, -#- backtrack => { promote => [ name ], keep => [ fullname ], -#- unsatisfied => [ id|property ], -#- closure => { fullname => { old_requested => bool, unsatisfied => [ id|property ] } } } } }, -#- -#- whatrequires => { name => { id => undef } }, -#- # reversed requires_nosense for selected packages -#- -#- # more fields only used in build_transaction_set and its callers) -#- transaction => [ { upgrade => [ id ], remove => [ fullname ] } ], -#- transaction_state => state_object, - sub property2name { $_[0] =~ /^([^\s\[]*)/ && $1; } |