aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-12 10:07:27 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-12 10:07:27 +0000
commit8c5ec672d46984d4470d0ba74c0d20289682b590 (patch)
tree1d66bbade65975a08eb3a51887535439427eea04
parentc76e3e2d87a9feab1aaab6cf24abde2e3fdad88d (diff)
downloadperl-URPM-8c5ec672d46984d4470d0ba74c0d20289682b590.tar
perl-URPM-8c5ec672d46984d4470d0ba74c0d20289682b590.tar.gz
perl-URPM-8c5ec672d46984d4470d0ba74c0d20289682b590.tar.bz2
perl-URPM-8c5ec672d46984d4470d0ba74c0d20289682b590.tar.xz
perl-URPM-8c5ec672d46984d4470d0ba74c0d20289682b590.zip
move var declaration where it's used
-rw-r--r--URPM/Resolve.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index 5469740..54a21ce 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -666,9 +666,6 @@ sub resolve_requested__no_suggests_ {
my $pkg = _choose_required($urpm, $db, $state, $dep, \@properties, %options) or next;
- #- cancel flag if this package should be cancelled but too late (typically keep options).
- my @keep;
-
!$pkg || exists $state->{selected}{$pkg->id} and next;
if ($pkg->arch eq 'src') {
@@ -716,6 +713,9 @@ sub resolve_requested__no_suggests_ {
$state->{whatrequires}{$_}{$pkg->id} = undef;
}
+ #- cancel flag if this package should be cancelled but too late (typically keep options).
+ my @keep;
+
_handle_conflicts($urpm, $db, $state, $pkg, \@properties, $options{keep} && \@keep);
#- examine if an existing package does not conflict with this one.