summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-15 14:57:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-15 14:57:29 +0000
commit406ef8823b57416e2bf69416ec3d9b3bc17ebb69 (patch)
treef672a0c1629c1d4c1be1ca385daa061d73788cb8 /urpm
parent0129c9db2bc1f015b2cda5e209b65cc94fc902e0 (diff)
downloadurpmi-406ef8823b57416e2bf69416ec3d9b3bc17ebb69.tar
urpmi-406ef8823b57416e2bf69416ec3d9b3bc17ebb69.tar.gz
urpmi-406ef8823b57416e2bf69416ec3d9b3bc17ebb69.tar.bz2
urpmi-406ef8823b57416e2bf69416ec3d9b3bc17ebb69.tar.xz
urpmi-406ef8823b57416e2bf69416ec3d9b3bc17ebb69.zip
fix resolve_dependencies for install_src
(broken since search_packages can return more than one src.rpm) anyway, this code is not needed and will be dropped
Diffstat (limited to 'urpm')
-rw-r--r--urpm/select.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index c8cf47a3..b737d0ed 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -227,7 +227,7 @@ sub resolve_dependencies {
if ($options{install_src}) {
#- only src will be installed, so only update $state->{selected} according
#- to src status of files.
- foreach (keys %$requested) {
+ foreach (map { split /\|/ } keys %$requested) {
my $pkg = $urpm->{depslist}[$_] or next;
$pkg->arch eq 'src' or next;
$state->{selected}{$_} = undef;