diff options
author | Francois Pons <fpons@mandriva.com> | 2002-06-17 15:44:07 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-06-17 15:44:07 +0000 |
commit | b4bfc2535199e3c659aaad1d4990ae6290a72dcc (patch) | |
tree | f7beff677c41a1daec113893876dc54eabb660c8 | |
parent | 9bde3bd997faff8dc7ee96b3c6726efe9d796a89 (diff) | |
download | urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.gz urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.bz2 urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.xz urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.zip |
3.5-5mdk
-rwxr-xr-x | urpmi | 4 | ||||
-rw-r--r-- | urpmi.spec | 6 | ||||
-rwxr-xr-x | urpmq | 2 |
3 files changed, 8 insertions, 4 deletions
@@ -343,12 +343,12 @@ my @to_install; #- check if there is at least one package to install that #- has not been given by the user. -my $ask_user = $env || $auto_select; +my $ask_user = $env; my $sum = 0; my @root_only; foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]) { - $ask_user ||= $pkg->flag_required; + $ask_user ||= $pkg->flag_required || $auto_select; my $fullname = $pkg->fullname; if (!$env && $uid > 0 && $pkg->arch ne 'src') { @@ -2,7 +2,7 @@ Name: urpmi Version: 3.5 -Release: 4mdk +Release: 5mdk License: GPL Source0: %{name}.tar.bz2 Source1: %{name}.logrotate @@ -144,6 +144,10 @@ fi %changelog +* Mon Jun 17 2002 François Pons <fpons@mandrakesoft.com> 3.5-5mdk +- fixed urpmi --auto-select with no update and question asked. +- fixed urpmq --auto-select with error on HASH... + * Mon Jun 17 2002 François Pons <fpons@mandrakesoft.com> 3.5-4mdk - fixed urpmq --headers on some cases. @@ -156,7 +156,7 @@ if ($query->{auto_select} || $query->{deps}) { $urpm->resolve_packages_to_upgrade($db, $state, requested => 0); - if (%{$state->{ask_remove}} || %{$state->{ask_unselect}}) { + if (%{$state->{ask_remove} || {}} || %{$state->{ask_unselect} || {}}) { $urpm->{error}(_("some packages have to be removed for being upgraded, this is not supported yet\n")); } } |