summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 17:53:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 17:53:11 +0000
commitdcacfc8d3c498345dad04ae090ac1cc29bf94dc5 (patch)
tree543f8fb87fc498a46fb329f311850df7157f3391 /urpm
parent3b4566be852a5319345f960917a6881da44c2bd3 (diff)
downloadurpmi-dcacfc8d3c498345dad04ae090ac1cc29bf94dc5.tar
urpmi-dcacfc8d3c498345dad04ae090ac1cc29bf94dc5.tar.gz
urpmi-dcacfc8d3c498345dad04ae090ac1cc29bf94dc5.tar.bz2
urpmi-dcacfc8d3c498345dad04ae090ac1cc29bf94dc5.tar.xz
urpmi-dcacfc8d3c498345dad04ae090ac1cc29bf94dc5.zip
move things around
Diffstat (limited to 'urpm')
-rw-r--r--urpm/install.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index bd986156..ca28e894 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -21,10 +21,12 @@ eval {
sub prepare_transaction {
my ($_urpm, $set, $list, $sources, $transaction_list, $transaction_sources) = @_;
- foreach my $id (@{$set->{upgrade}}) {
- foreach (0..$#$list) {
+ foreach (0..$#$list) {
+ foreach my $id (@{$set->{upgrade}}) {
exists $list->[$_]{$id} and $transaction_list->[$_]{$id} = $list->[$_]{$id};
}
+ }
+ foreach my $id (@{$set->{upgrade}}) {
exists $sources->{$id} and $transaction_sources->{$id} = $sources->{$id};
}
}