aboutsummaryrefslogtreecommitdiffstats
path: root/URPM/Resolve.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-11 14:00:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-11 14:00:23 +0000
commit805733388ae7f658bb935a3b6b760885564f3af0 (patch)
tree83ad3787ae40018f4b6596a2884fa5e4d00fe321 /URPM/Resolve.pm
parent76f0db213addc92c1c73a447b9d35151c502042a (diff)
downloadperl-URPM-805733388ae7f658bb935a3b6b760885564f3af0.tar
perl-URPM-805733388ae7f658bb935a3b6b760885564f3af0.tar.gz
perl-URPM-805733388ae7f658bb935a3b6b760885564f3af0.tar.bz2
perl-URPM-805733388ae7f658bb935a3b6b760885564f3af0.tar.xz
perl-URPM-805733388ae7f658bb935a3b6b760885564f3af0.zip
define var where it's needed
Diffstat (limited to 'URPM/Resolve.pm')
-rw-r--r--URPM/Resolve.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index c67083f..c647a7a 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -549,7 +549,7 @@ sub resolve_requested {
#- nodeps :
sub resolve_requested__no_suggests {
my ($urpm, $db, $state, $requested, %options) = @_;
- my ($dep, @diff_provides, @properties, @selected);
+ my (@diff_provides, @properties, @selected);
#- populate properties with backtrack informations.
while (my ($r, $v) = each %$requested) {
@@ -570,7 +570,7 @@ sub resolve_requested__no_suggests {
#- package present or by a new package to upgrade), then requires not satisfied and
#- finally conflicts that will force a new upgrade or a remove.
do {
- while (defined ($dep = shift @properties)) {
+ while (defined (my $dep = shift @properties)) {
#- in case of keep_unrequested_dependencies option is not set, we need to avoid
#- selecting packages if the source has been disabled.
if (exists $dep->{from} && !$options{keep_unrequested_dependencies}) {