diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-06-19 09:44:24 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-06-19 09:44:24 +0000 |
commit | ff6b9527c67ba8156f2edceb87be2664f11f2e23 (patch) | |
tree | 5e0623904fc3b65916ff0c3218f1a4c8f02dbe0c | |
parent | 68b8c2641a8bdf028ea9ddc3635e13fcbb7ab5a4 (diff) | |
download | rpmdrake-ff6b9527c67ba8156f2edceb87be2664f11f2e23.tar rpmdrake-ff6b9527c67ba8156f2edceb87be2664f11f2e23.tar.gz rpmdrake-ff6b9527c67ba8156f2edceb87be2664f11f2e23.tar.bz2 rpmdrake-ff6b9527c67ba8156f2edceb87be2664f11f2e23.tar.xz rpmdrake-ff6b9527c67ba8156f2edceb87be2664f11f2e23.zip |
fix some problems when selecting pkgs due to unitialized state (me sux)
-rwxr-xr-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -514,7 +514,6 @@ or you already installed all of them.")); } } else { if ($new_state) { - $urpm->{state}{selected} = {}; if (@nodes > 1) { #- unselect i18n packages of which locales is not already present (happens when user clicks on KDE group) my @bad_i18n_pkgs; @@ -744,7 +743,7 @@ or you already installed all of them.")); my %action2fun; %action2fun = ( reset_selection => sub { if ($MODE ne 'remove') { - $urpm->{state}{unselected} = {}; + $urpm->{state} = {}; $urpm->resolve_unrequested(db(), $urpm->{state}, { map { if_($pkgs->{$_}{selected}, $pkgs->{$_}{pkg}->id => undef) } keys %$pkgs }); } @@ -949,6 +948,7 @@ Then, restart MandrakeUpdate.", $update_name)), myexit(-1); } my $wait = wait_msg_(N("Please wait, finding available packages...")); my $urpm = urpm->new; + $urpm->{state} = {}; my %installable_pkgs; $urpm->configure; |