diff options
author | Francois Pons <fpons@mandriva.com> | 2001-07-04 08:49:28 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2001-07-04 08:49:28 +0000 |
commit | 351943ccc4ebba440370d78bb01052840adc0b81 (patch) | |
tree | 47229dac05d9b2635883dd25b9594c4f5e526fda | |
parent | 05aab9cd3723160aba46d4dec65f5ea22fb92172 (diff) | |
download | urpmi-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).
-rw-r--r-- | urpm.pm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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}"; |