summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-06-17 15:44:07 +0000
committerFrancois Pons <fpons@mandriva.com>2002-06-17 15:44:07 +0000
commitb4bfc2535199e3c659aaad1d4990ae6290a72dcc (patch)
treef7beff677c41a1daec113893876dc54eabb660c8
parent9bde3bd997faff8dc7ee96b3c6726efe9d796a89 (diff)
downloadurpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar
urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.gz
urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.bz2
urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.tar.xz
urpmi-b4bfc2535199e3c659aaad1d4990ae6290a72dcc.zip
3.5-5mdk
-rwxr-xr-xurpmi4
-rw-r--r--urpmi.spec6
-rwxr-xr-xurpmq2
3 files changed, 8 insertions, 4 deletions
diff --git a/urpmi b/urpmi
index e00a8fb7..7b52119b 100755
--- a/urpmi
+++ b/urpmi
@@ -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') {
diff --git a/urpmi.spec b/urpmi.spec
index 73bee505..83d85ba2 100644
--- a/urpmi.spec
+++ b/urpmi.spec
@@ -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.
diff --git a/urpmq b/urpmq
index e2b3982d..4c70eaff 100755
--- a/urpmq
+++ b/urpmq
@@ -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"));
}
}