aboutsummaryrefslogtreecommitdiffstats
path: root/URPM
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-11 13:59:31 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-11 13:59:31 +0000
commit76f0db213addc92c1c73a447b9d35151c502042a (patch)
tree5977c066333b60df5b78b9c3f31def1b6891d4ea /URPM
parent6c48950639e828813fe1a3e1244bae8a85b3a71c (diff)
downloadperl-URPM-76f0db213addc92c1c73a447b9d35151c502042a.tar
perl-URPM-76f0db213addc92c1c73a447b9d35151c502042a.tar.gz
perl-URPM-76f0db213addc92c1c73a447b9d35151c502042a.tar.bz2
perl-URPM-76f0db213addc92c1c73a447b9d35151c502042a.tar.xz
perl-URPM-76f0db213addc92c1c73a447b9d35151c502042a.zip
rename var, $dep will only be used as an element from @properties
Diffstat (limited to 'URPM')
-rw-r--r--URPM/Resolve.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/URPM/Resolve.pm b/URPM/Resolve.pm
index ac798ac..c67083f 100644
--- a/URPM/Resolve.pm
+++ b/URPM/Resolve.pm
@@ -922,12 +922,12 @@ sub _handle_provides_overlap {
}
sub _id_to_name {
- my ($urpm, $dep) = @_;
- if ($dep =~ /^\d+/) {
- my $pkg = $urpm->{depslist}[$dep];
+ my ($urpm, $id_prop) = @_;
+ if ($id_prop =~ /^\d+/) {
+ my $pkg = $urpm->{depslist}[$id_prop];
$pkg && $pkg->name;
} else {
- $dep;
+ $id_prop;
}
}
sub _ids_to_names {