diff options
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r-- | URPM/Resolve.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm index adb12b9..0e6041b 100644 --- a/URPM/Resolve.pm +++ b/URPM/Resolve.pm @@ -97,7 +97,7 @@ sub resolve_closure_ask_remove { closure => { $from => $why }, }; - my @removes = ($pkg); + my @removes = $pkg; while ($pkg = shift @removes) { #- clean state according to provided properties. foreach ($pkg->provides) { @@ -294,7 +294,7 @@ sub resolve_requested { $state->{selected}{$pkg->id} = delete $requested->{$dep}; $options{no_flag_update} or - $state->{selected}{$pkg->id} ? $pkg->set_flag_requested : $pkg->set_flag_required; + ($state->{selected}{$pkg->id} ? $pkg->set_flag_requested : $pkg->set_flag_required); #- check if package is not already installed before trying to use it, compute #- obsoleted package too. this is valable only for non source package. |