summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-11 09:55:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-11 09:55:13 +0000
commit54d87f0171d26e88c36d3592c8bd5df5aa96ca5b (patch)
treeac4cc7285c2730bb4853f2d21af05a6d0e8a91c4
parent12882b2dc3e62f74b51f1d79ea62d436115545ad (diff)
downloadurpmi-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)
-rw-r--r--urpm.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/urpm.pm b/urpm.pm
index 93f830b2..3fe7523f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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} = $_ . '';
+ }
}
}