aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-13 06:35:33 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-05-13 06:35:33 +0000
commit515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a (patch)
tree5c59ff151de9d29bd0ef775ed81f78dedb92bab8
parentb43152fb01ec6a18929b8654b3072298d6b3679b (diff)
downloadrpmdrake-515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a.tar
rpmdrake-515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a.tar.gz
rpmdrake-515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a.tar.bz2
rpmdrake-515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a.tar.xz
rpmdrake-515a0eb0a98668245fee0a5758fbc4a2b4c4aa7a.zip
packages lists in non-update modes were broken
-rwxr-xr-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index d75dd871..de51d36c 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -1299,17 +1299,17 @@ Then, restart %s.", $rpmdrake::myname_update)), myexit(-1);
@update_medias = grep { !$_->{ignore} && $_->{update} } @{$urpm->{media}};
check_update_media_version($urpm, @update_medias);
+ $urpm->compute_installed_flags(db()) unless $updates;
my $requested = {};
$urpm->request_packages_to_upgrade(
db(),
{}, #- $state,
$requested,
- requested => undef,
start => 0,
end => $#{$urpm->{depslist}},
);
+ $urpm->{depslist}[$_]->set_flag_installed foreach keys %$requested; #- pretend it's installed
- $urpm->{depslist}[$_]->set_flag_installed for keys %$requested; #- pretend it's installed
foreach my $pkg (@{$urpm->{depslist}}) {
$pkg->flag_upgrade or next;
my $selected = 0;