diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-11 09:55:13 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-02-11 09:55:13 +0000 |
commit | 54d87f0171d26e88c36d3592c8bd5df5aa96ca5b (patch) | |
tree | ac4cc7285c2730bb4853f2d21af05a6d0e8a91c4 /urpm.pm | |
parent | 12882b2dc3e62f74b51f1d79ea62d436115545ad (diff) | |
download | urpmi-54d87f0171d26e88c36d3592c8bd5df5aa96ca5b.tar urpmi-54d87f0171d26e88c36d3592c8bd5df5aa96ca5b.tar.gz urpmi-54d87f0171d26e88c36d3592c8bd5df5aa96ca5b.tar.bz2 urpmi-54d87f0171d26e88c36d3592c8bd5df5aa96ca5b.tar.xz urpmi-54d87f0171d26e88c36d3592c8bd5df5aa96ca5b.zip |
Fix retrieval of source packages (e.g. urpmq --sources) with alternative
dependencies foo|bar (Pascal Terjan)
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -2311,11 +2311,13 @@ sub get_source_packages { #- build association hash to retrieve id and examine all list files. foreach (keys %$packages) { - my $p = $urpm->{depslist}[$_]; - if ($urpm->{source}{$_}) { - $protected_files{$local_sources{$_} = $urpm->{source}{$_}} = undef; - } else { - $fullname2id{$p->fullname} = $_ . ''; + foreach (split /\|/, $_) { + if ($urpm->{source}{$_}) { + $protected_files{$local_sources{$_} = $urpm->{source}{$_}} = undef; + } else { + my $p = $urpm->{depslist}[$_]; + $fullname2id{$p->fullname} = $_ . ''; + } } } |