summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-04 08:49:28 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-04 08:49:28 +0000
commit351943ccc4ebba440370d78bb01052840adc0b81 (patch)
tree47229dac05d9b2635883dd25b9594c4f5e526fda /urpm.pm
parent05aab9cd3723160aba46d4dec65f5ea22fb92172 (diff)
downloadurpmi-351943ccc4ebba440370d78bb01052840adc0b81.tar
urpmi-351943ccc4ebba440370d78bb01052840adc0b81.tar.gz
urpmi-351943ccc4ebba440370d78bb01052840adc0b81.tar.bz2
urpmi-351943ccc4ebba440370d78bb01052840adc0b81.tar.xz
urpmi-351943ccc4ebba440370d78bb01052840adc0b81.zip
fixed bad packages to install (wrong id reported in when searching packages).
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 490dd05a..8f120497 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -965,8 +965,9 @@ sub search_packages {
}
}
- my $id = 0;
- foreach my $info (@{$urpm->{params}{depslist}}) {
+ foreach my $id (0 .. $#{$urpm->{params}{depslist}}) {
+ my $info = $urpm->{params}{depslist}[$id];
+
rpmtools::compat_arch($info->{arch}) && (!$options{use_active} || $info->{active}) or next;
my $pack_ra = "$info->{name}-$info->{version}";